Hi All , I have written one sample program for connecting Oracle in C++ using OCCI..
It is giving me a runtime error .
ld: 0711-317 ERROR: Undefined symbol: .oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode,void*,void*(*)(void*,unsigned long),void*(*)(void*,void*,unsigned long),void(*)(void*,void*))
ld: 0711-317 ERROR: Undefined symbol: .oracle::occi::Environment::terminateEnvironment(oracle::occi::Environment*)
I have given the following command to execute it
g++ -o occi amrtest.cpp -Wall -I/oradata/oracle/product/10.2.0/db_1/rdbms/public -L/oradata/oracle/product/10.2.0/db_1/lib -lclntsh -lnnz10 -locci -lclntsh -lnnz10 -locci10
Can u help me in getting this error resolved ?