sqlcxt error [message #75909] |
Mon, 18 February 2002 00:33 |
E. Jayasankar
Messages: 1 Registered: February 2002
|
Junior Member |
|
|
While linking the Pro*C obj file, I am getting error unresolved symbol, sqlcxt(). How to fix this. I have included orasql8.lib and other necessary files. I have tried linking from the command line also. Still it is not working. I have edited the make.bat file also. I couldn't rectify the problem.
If anybody knows the answer please help me???
|
|
|
Re: sqlcxt error [message #75919 is a reply to message #75909] |
Sun, 10 March 2002 21:35 |
Hari
Messages: 59 Registered: August 2000
|
Member |
|
|
Please change the function
extern void sqlcxt (....);
created after the precompilation
as
extern "C" void sqlcxt (...);
The error does not occur. It worked for me. This is in case you are using a C++ file.
Thanks.
Regards.
H.
|
|
|
Re: sqlcxt error [message #75942 is a reply to message #75909] |
Fri, 26 April 2002 16:00 |
Jean_pierre Nziga
Messages: 1 Registered: April 2002
|
Junior Member |
|
|
I am trying to compile a program (Pro*C) and I am having the following error message:
Undefined first referenced
symbol in file
sqlcxt /var/tmp/ccdTbkhq.o
ld:fatal:symbol referencing errors. No output written to a.out
collect2:ld returned 1 exit status.
Any help?
Thanks,
Jean_pierre.
|
|
|
Re: sqlcxt error [message #75949 is a reply to message #75909] |
Mon, 13 May 2002 05:28 |
sanjay tripathy
Messages: 1 Registered: May 2002
|
Junior Member |
|
|
when i precompile my .pc file it generates .c file successfully with this line
extern sqlcxt (/*_ void **, unsigned long *,
struct sqlexd *, struct sqlcxp * _*/);
and while linking it could not recognise sqlcxt and references is as undefined symbol.
what flags should i use to get link the corresponding oracle library
|
|
|
Re: sqlcxt error [message #75964 is a reply to message #75909] |
Fri, 12 July 2002 06:02 |
D.
Messages: 5 Registered: November 2001
|
Junior Member |
|
|
In the pre compiler settings set Code to 'CPP' rather than 'ANSI_C'.
It will then automagicaly wrap the function prototypes with extern "C when the code is generated.
|
|
|
Re: sqlcxt error [message #76007 is a reply to message #75909] |
Tue, 17 December 2002 07:56 |
akhil
Messages: 2 Registered: December 2002
|
Junior Member |
|
|
Hi,
I am working on an application which is in HPUnix 10.2(C-Front compiler) with PRO*C
We are mihratingf to HP 11.x (aCC Compiler) with Pro*C.
While compiling Pro*C code, i am getting following error:
"Expected 0 argument(s) for "int sqlcxt()"; had 4 instead"
Anybody can help!!!
Akhil
|
|
|
|
|
Re: sqlcxt error [message #76086 is a reply to message #76085] |
Fri, 19 March 2004 20:35 |
AJ
Messages: 11 Registered: April 2002
|
Junior Member |
|
|
Hi ,
use -L option as:
-L$ORACLE_HOME/lib
this should tell cc where to find libraries
then use -lclntsh
This would link libclntsh in the application and
sattisfy the sqlcxt code dependency.
Regards
J
|
|
|
|
|
Re: sqlcxt error -to many call arguments [message #76184 is a reply to message #76083] |
Mon, 07 February 2005 22:15 |
Ganesh
Messages: 31 Registered: November 2000
|
Member |
|
|
Hi ,
I also facing the problem with the sqlcxt. when i am compiling the file it gives the error as
"To many call arguments to sqlcx()" . I have the Pre compiler setting as CPP only.
Can any one help meeeeeeeeeeee....
Thanks in Advance
Ganesh
|
|
|
|
|