Home » Developer & Programmer » Precompilers, OCI & OCCI » undefined symbol
undefined symbol [message #278926] Tue, 06 November 2007 05:43 Go to next message
saravanan_nitt
Messages: 31
Registered: October 2007
Location: Bangalore
Member

hi ......
I m facing problem in linking the library for oracle's
oci functions (oparse, oexec, etc.) to my code.
i m having one .cc file where all definition for the function is there
and one main.cc is also there .....
i m trying to link libclntsh.so.9.0 ....
i m getting error like,
undefined symbol
oparse
oexec
olog

etc...

I m working in the solaris environment using CC(solaris c++ compiler).
Pls, help me out in solving the prob...
thanks in advance
Re: undefined symbol [message #278953 is a reply to message #278926] Tue, 06 November 2007 07:32 Go to previous messageGo to next message
Michel Cadot
Messages: 64103
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Did you install the client as per http://www.orafaq.com/forum/mv/msg/91305/275863/102589/#msg_275863?

Regards
Michel

[Updated on: Tue, 06 November 2007 07:32]

Report message to a moderator

Re: undefined symbol [message #278958 is a reply to message #278926] Tue, 06 November 2007 07:50 Go to previous messageGo to next message
saravanan_nitt
Messages: 31
Registered: October 2007
Location: Bangalore
Member

FOF all thanks 4 replying.....
it is installed by the IT people not me....
it is working fine for the other c++ program which using the same api's
Re: undefined symbol [message #279002 is a reply to message #278958] Tue, 06 November 2007 09:42 Go to previous messageGo to next message
Michel Cadot
Messages: 64103
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Then check your makefile. You surely missed a lib or the like in it.

Regards
Michel
Re: undefined symbol [message #279931 is a reply to message #279002] Sun, 11 November 2007 23:54 Go to previous messageGo to next message
saravanan_nitt
Messages: 31
Registered: October 2007
Location: Bangalore
Member

Thanks Michal,
i found out the problem..
i used c api's in c++ program thats y it given that prob...
Re: undefined symbol [message #279949 is a reply to message #279931] Mon, 12 November 2007 01:00 Go to previous messageGo to next message
Michel Cadot
Messages: 64103
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Thanks for the feedback.

Regards
Michel
Re: undefined symbol [message #279959 is a reply to message #278926] Mon, 12 November 2007 01:39 Go to previous messageGo to next message
saravanan_nitt
Messages: 31
Registered: October 2007
Location: Bangalore
Member

hi michel
could u pls explain me y c api's cant used in c++..
Re: undefined symbol [message #279968 is a reply to message #279959] Mon, 12 November 2007 02:07 Go to previous messageGo to next message
Michel Cadot
Messages: 64103
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
I can't read IM speak.

Regards
Michel
Re: undefined symbol [message #280365 is a reply to message #279968] Tue, 13 November 2007 06:04 Go to previous messageGo to next message
saravanan_nitt
Messages: 31
Registered: October 2007
Location: Bangalore
Member

Sorry for the IM.....
Please, explain me the API's which is of c used in c++ gives prob.
Re: undefined symbol [message #280381 is a reply to message #280365] Tue, 13 November 2007 06:36 Go to previous messageGo to next message
Michel Cadot
Messages: 64103
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Not enough data to compute. Smile

Regards
Michel
Re: undefined symbol [message #280521 is a reply to message #280381] Tue, 13 November 2007 23:48 Go to previous messageGo to next message
saravanan_nitt
Messages: 31
Registered: October 2007
Location: Bangalore
Member


could you pls explain me why c OCI API's are can not be used
directly in c++ program.
Re: undefined symbol [message #280556 is a reply to message #280521] Wed, 14 November 2007 01:32 Go to previous message
Michel Cadot
Messages: 64103
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Michel Cadot wrote on Tue, 13 November 2007 13:36

Not enough data to compute. Smile

Regards
Michel


Previous Topic: calling oracle stored procedure from c program..
Next Topic: libraries needed to link OCCI using gcc (merged)
Goto Forum:
  


Current Time: Sat Dec 03 20:18:42 CST 2016

Total time taken to generate the page: 0.09085 seconds