Home » Developer & Programmer » Precompilers, OCI & OCCI » Problem with OCCI (Linux, Oracle 10g)
Problem with OCCI [message #349030] Thu, 18 September 2008 11:04
Messages: 9
Registered: September 2008
Junior Member
My OS is Linux and I installed Oracle 10.2. Everything is fine.
I can use sqlplus, exp, imp etc with no problem.

Now I have created another linux user test in /home/test.
I unzipped basic-10.2xxxxxx.zip (/home/test/instantclient_10_2) and exported LD_LIBRARY_PATH.
I guess I have installed instant client in this way.

My testOra.cpp:

#include <occi.h>
using namespace oracle::occi;

int main()
Environment* env = Environment::createEnvironment();
return 0;

This testOra.cpp would not compile.
Error: undefined reference ...createEnvironment(...)

It compiles if I change the first line as follows (not create).
Environment* env;

Would you please tell me what to do?

Thank you in advance.
Previous Topic: Problem, how to connect c++ and Oracle
Next Topic: OCCI Compilation Error
Goto Forum:

Current Time: Wed Jul 28 05:05:44 CDT 2021