error LNK2019: unresolved external symbol _sqlcxt [message #284626] |
Fri, 30 November 2007 05:50 |
ijy_david
Messages: 7 Registered: August 2007 Location: UK
|
Junior Member |
|
|
Hi,
I am trying to build a library file on windows and am having Oracle 9 and 10 installed here.
But I am getting the error
error LNK2019: unresolved external symbol _sqlcxt referenced in function.
I had seen a solution as to include orasql9.lib/orasql10.b in the LIB path. But this is not helping me.
I am using a makefile also.
Can anybody pls help me on this regard? Is there any other workaround?
My proc file was compiled to c file on unix platform. Is that the problem?
Cheers,
Ijy
|
|
|
|
Re: error LNK2019: unresolved external symbol _sqlcxt [message #284882 is a reply to message #284633] |
Sun, 02 December 2007 08:25 |
vicenzo
Messages: 28 Registered: December 2007 Location: Paris
|
Junior Member |
|
|
You've got an linker error apparently generated by microsoft linker.
_sqlcxt is always defined in orasqlX.lib where X is Oracle version.
Your linker just doesn't find it ! So, it's just a path or env variable problem.
Can you post your makefile ?
|
|
|
Re: error LNK2019: unresolved external symbol _sqlcxt [message #284917 is a reply to message #284633] |
Sun, 02 December 2007 21:06 |
ijy_david
Messages: 7 Registered: August 2007 Location: UK
|
Junior Member |
|
|
Thanks for all your replies.
Michel,
I am getting the error when I am trying to compile a c file which has Pro*C code. The pro*c file was compiled on Unix to get the c file. The c file is being compiled on Windows to get the library file.
Is this the problem?
Vicenzo,
Inspite of setting the path for orasqx10.lib and oasql10.lib in the env variable, am facing the problm.
Looking forward for any assistance on this.
Cheers,
Ijy
|
|
|
|
|
|
Re: error LNK2019: unresolved external symbol _sqlcxt [message #285665 is a reply to message #285060] |
Wed, 05 December 2007 04:43 |
ijy_david
Messages: 7 Registered: August 2007 Location: UK
|
Junior Member |
|
|
Hi Michel,
Compiled the pro*c code from windows. and still am getting the same error.
So it is not the problem with unix compilation of pro*c file i presume.
and vicenzo,
am sorry am unable 2 post the makefile, wat exactly are you trying to look into tht. I can help on that.
in the lib path i am specifying the path to orasql10.lib and tried even orasql9.lib. But doesnt help.
could anybody help on this pls?
cheers,
ijy
|
|
|
Re: error LNK2019: unresolved external symbol _sqlcxt [message #285759 is a reply to message #285665] |
Wed, 05 December 2007 08:41 |
vicenzo
Messages: 28 Registered: December 2007 Location: Paris
|
Junior Member |
|
|
You problem is a linking problem and not compilation problem.
The linker is not able to find the symbol, it means it doesn't find the oracle sqllib that contains the symbol...
The only way to help you is to look at the linker command line and options...
Without the makefile ou even the linking part of the makefile, we cannot help you !
|
|
|