Home » Developer & Programmer » Precompilers, OCI & OCCI » Re: sqlcxt error
Re: sqlcxt error [message #75993] Mon, 21 October 2002 04:14 Go to next message
Janardhan Babu Chinta
Messages: 1
Registered: October 2002
Junior Member
ProC compiles the .pc file and generates the below signature for the sqlcxt

extern void sqlcxt (void **, unsigned int *, struct sqlexd *, const struct sqlcxp *);

Even though sqlcxt is included in the orasql9.lib/orasql8.lib it fails to link it because of C naming convention.
This mostly happens if u genrate c++/.cpp files from the ProC or rename the .c files to .cpp, which requires extern "C" linking to be specified explicitly for VC++.

Update the above line in the .cpp file to

extern "C" void sqlcxt (void **, unsigned int *, struct sqlexd *, const struct sqlcxp *);

The only change is just adding "C" to the generated function declaration.

And there u go.
Re: sqlcxt error [message #303295 is a reply to message #75993] Thu, 28 February 2008 13:33 Go to previous message
MeghaMadan
Messages: 2
Registered: February 2008
Junior Member
Hi...

Were you able to fix the issue of undefined symbol sqlcxt?

I have made the change in .c file of the program being created as mentioned by you:

extern "C" void sqlcxt (void **, unsigned int *,
struct sqlexd *, struct sqlcxp *);

However, it gives me the following error:
mots_interface.c:117: error: parse error before string constant


Could you please suggest as to what am i missing here? Is there any header file which is not getting included? the libclntsh file is being included ib the makefile I have.

Any help in this regard would be highly appreciated.

Thanks
Megha
Previous Topic: C2001: newline in constant error: HELP!
Next Topic: PHP connectivity required
Goto Forum:
  


Current Time: Thu Mar 28 06:52:43 CDT 2024