Problem with Sample-Prog of OCCI [message #94078] |
Tue, 06 January 2004 01:37 |
NewToOCCI
Messages: 1 Registered: January 2004
|
Junior Member |
|
|
Hi,
I've been writing a cross-plattform program lately. Now I want to extend that program with a database-connection to oracle. My program is mostly running on Windows- or Solaris-machines. Now the program just runs fine.
I have to say, I never wrote a program with database-connection before. Except of some times in Borland C++ Builder with ADO. But that wasn't nearly that complicated.
I've been looking for a way to connect to an Oracle-Database out of a C++-Program. This Oracle-Connection should work under Windows and Solaris. I found OCCI the best way to do so. Hopefully that's right. Any better suggestions would be really appreciated.
My Problem is now, that when I try to compile a program which uses OCCI-Classes, -Functions or whatever, I keep getting the following error message:
[[Linker error]] undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned), void* (*)(void*, void*, unsigned), void (*)(void*, void*))'
This message comes up for everything I use out of the OCCI-Library. I included the path where occi.h is saved. I also included the lib-Files (oraocci9.lib, ...). But I keep getting these error messages.
Any kind of help would really be appreciated (again).
Thanks in advance.
|
|
|
|