Home » Developer & Programmer » Precompilers, OCI & OCCI » Linking error with VC++
Linking error with VC++ [message #93704] Wed, 23 October 2002 06:07 Go to next message
G. Bharathi
Messages: 1
Registered: October 2002
Junior Member
In my project, I have 2 *.PC files & so 2 *.cpp files correspondingly. In both the files i have include sqlca.h.
I have tried the option given in oracle documentation ie.
#undef SQLCA
#include <sqlca.h>
I have even tried the option by declaring the struct as extern. But nothing works.
I get the linking error LNK2005 when I build the project in VC++.
What is the solution for it? Can anyone help us.
Re: Linking error with VC++ [message #93789 is a reply to message #93704] Mon, 20 January 2003 08:49 Go to previous messageGo to next message
Thotakura
Messages: 9
Registered: January 2003
Junior Member
Hai,

Go to Project Menu and then settings go to link tab and there type oci.lib and orasql8.lib in library modules text box and then press OK.
u'r problem will be solved.
Re: Linking error with VC++ [message #94006 is a reply to message #93704] Tue, 12 August 2003 01:12 Go to previous messageGo to next message
songzq
Messages: 1
Registered: August 2003
Junior Member
I think u can add 1 line in ur the 2nd .pc file,before the "#include <sqlca.h>"

add
"#define SQLCA_STORAGE_CLASS extern"
Re: Linking error with VC++ [message #94010 is a reply to message #93789] Fri, 22 August 2003 09:11 Go to previous message
Erik
Messages: 17
Registered: September 2002
Junior Member
Thanks for the posting!!
Previous Topic: Is it possible to interoperate between OCCI and Pro*C
Next Topic: new to Pro *C
Goto Forum:
  


Current Time: Sun Nov 24 11:25:42 CST 2024