OCCI 9.2.0.8 Application gets 'undefined reference to `typeinfo for oracle::occi::SQLException' during Compilation (Doc ID 1417603.1)

Last updated on JULY 05, 2017

Applies to:

Oracle Server - Enterprise Edition - Version: 9.2.0.8 to 10.2.0.3 - Release: 9.2 to 10.2
Linux x86
Miracle Linux x86-64

Symptoms

OCCI compilation fails with:

make -f demo_rdbms.mk buildocci EXE=occidesc OBJS=occidesc.o
/usr/bin/g++ -c -I/ora9208/rdbms/demo -I/ora9208/rdbms/public -I/ora9208/plsql/public -I/ora9208/network/public occidesc.cpp
/usr/bin/g++ -L/ora9208/lib/ -L/ora9208/rdbms/lib/ -o occidesc occidesc.o -locci -lclntsh `cat /ora9208/lib/sysliblist` -ldl -lm
occidesc.o(.gcc_except_table+0x70): undefined reference to `typeinfo for oracle::occi::SQLException'
occidesc.o(.gcc_except_table+0x88): undefined reference to `typeinfo for oracle::occi::SQLException'
occidesc.o(.gcc_except_table+0x14c): undefined reference to `typeinfo for oracle::occi::SQLException'
occidesc.o(.gcc_except_table+0x224): undefined reference to `typeinfo for oracle::occi::SQLException'
occidesc.o(.gcc_except_table+0x2e4): undefined reference to `typeinfo for oracle::occi::SQLException'
occidesc.o(.gnu.linkonce.t._ZN8occidescC1ESsSsSs+0x14): In function `occidesc::occidesc(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned int), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms