Discussions
Categories
- 196.9K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.3K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 545 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.9K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.6K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 440 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
OCCI demo linking errors

I'm on RHEL 8 and have installed the Oracle Client software 19c, as well as the Examples. I've got the $ORACLE_HOME/precomp/demo/proc examples compiling correctly. I copied the $ORACLE_HOME/rdbms/demo code to a working directory and when I try to compile it I get errors:
$ make -f demo_rdbms.mk occidemos
...
make -f /app/oracle/rdbms/demo/demo_rdbms.mk buildocci EXE=occicoll OBJS=occicoll.o
make[1]: Entering directory '/home/oracle/rdbms/demo'
/usr/bin/g++ -c -I/u01/app/oracle/product/19.0.0/client_1/rdbms/demo -I/u01/app/oracle/product/19.0.0/client_1/rdbms/public -I/u01/app/oracle/product/19.0.0/client_1/plsql/public -I/u01/app/oracle/product/19.0.0/client_1/network/public -m64 occicoll.cpp -DLINUX -DORAX86_64 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -DSLTS_ENABLE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS -DLONG_IS_64 -DSS_64BIT_SERVER -DCOMP_DIR="" -DLDAP_CM
/usr/bin/g++ -L/u01/app/oracle/product/19.0.0/client_1/lib/ -L/u01/app/oracle/product/19.0.0/client_1/rdbms/lib/ -o occicoll occicoll.o -locci -lclntsh -lclntshcore `cat /u01/app/oracle/product/19.0.0/client_1/lib/sysliblist` -ldl -lm -lpthread -m64
/usr/bin/ld: warning: libnsl.so.1, needed by /u01/app/oracle/product/19.0.0/client_1/lib//libclntsh.so, may conflict with libnsl.so.2
occicoll.o: In function `main':
occicoll.cpp:(.text+0x488): undefined reference to `oracle::occi::SQLException::getMessage[abi:cxx11]() const'
$ gcc -v
gcc version 8.4.1 20200928 (Red Hat 8.4.1-1) (GCC)
Can anyone offer suggestions on how to get the sample code to compile?