Home » Developer & Programmer » Precompilers, OCI & OCCI » OCI linker error
OCI linker error [message #93566] Mon, 24 June 2002 23:23 Go to next message
Depa
Messages: 30
Registered: June 2002
Member
O.S : Solaris
Oracle version: 8.1.6
i have a OCI program.
I am getting linker error.
Can anyone specify the exact library(.so) files needed for linking .
urgent please
Re: OCI linker error [message #93569 is a reply to message #93566] Thu, 27 June 2002 01:25 Go to previous messageGo to next message
Riosinph
Messages: 5
Registered: June 2002
Junior Member
hi:
please add the paramters:

-L$ORACLE_HOME/lib
-lclntsh `cat $ORACLE_HOME/lib/sysliblist` -ldl -lm

bye
Re: OCI linker error [message #93571 is a reply to message #93566] Thu, 27 June 2002 03:43 Go to previous messageGo to next message
Deepa
Messages: 269
Registered: November 2000
Senior Member
hello,
can you be clear.
Where to add these parameters,

how to specify the .so files when executing the program from commandline using g++ compiler
Re: OCI linker error [message #93575 is a reply to message #93566] Fri, 28 June 2002 02:14 Go to previous message
Riosinph
Messages: 5
Registered: June 2002
Junior Member
For Example:

g++ -o xxx -I$ORACLE_HOME/rdbms/demo/
-I$ORACLE_HOME/rdbms/public/
-L$ORACLE_HOME/lib
-lclntsh `cat $ORACLE_HOME/lib/sysliblist` -ldl -lm
xxx.c
Previous Topic: Delete everything from a table
Next Topic: OCCI using GCC (or Borland)
Goto Forum:
  


Current Time: Sun Nov 24 13:44:53 CST 2024