Home » Developer & Programmer » Precompilers, OCI & OCCI » Pro*C problem - unable generate .exe file (Oracle 10.0.2, Windows XP 64 bit)
Pro*C problem - unable generate .exe file [message #436710] Sat, 26 December 2009 06:51 Go to next message
hs_kaler
Messages: 1
Registered: December 2009
Location: India
Junior Member

Hi,

I am using oracle 10g version 10.2.0.

I am trying to make .exe file for the pro*c (.pc) file with the help of below mentioned steps -


proc emp.pc -- perfect no problem. I am getting emp.c file

gcc -I /cygdrive/f/oracle/product/10.2.0/db_1/precomp/public -c emp.c -- perfect no problem. I am getting the emp.o file here.

And the full game is here in this step. When I am trying to make .exe(using below mentioned command) by linking the generated emp.o file with the library files I am getting an error


gcc -o Employee_Exe -L /cygdrive/f/oracle/product/10.2.0/db_1/lib -L /cygdrive/f/oracle/product/10.2.0/db_1/RDBMS/XA/oraxa10.lib -L /cygdrive/f/oracle/product/10.2.0/db_1/oci/lib/msvc/oci.lib -L /cygdrive/f/oracle/product/10.2.0/db_1/precomp/lib/msvc/orasqx10.lib -L /cygdrive/f/oracle/product/10.2.0/db_1/precomp/lib/orasql10.lib emp.o

Error
emp.o:emp.c:(.text+0x259): undefined reference to `_sqlcxt'
emp.o:emp.c:(.text+0x52a): undefined reference to `_sqlcxt'
emp.o:emp.c:(.text+0x65f): undefined reference to `_sqlcxt'
emp.o:emp.c:(.text+0x725): undefined reference to `_sqlcxt'
collect2: ld returned 1 exit status

Please help me to resolve this issue.

Re: Pro*C problem - unable generate .exe file [message #468888 is a reply to message #436710] Mon, 02 August 2010 07:20 Go to previous messageGo to next message
martingh
Messages: 6
Registered: August 2010
Junior Member
clarify one thing - what OS platform you are using? is it 32-bit or 64-bit?

Thanks,

Martin



[Updated on: Mon, 02 August 2010 08:06] by Moderator

Report message to a moderator

Re: Pro*C problem - unable generate .exe file [message #468899 is a reply to message #468888] Mon, 02 August 2010 08:07 Go to previous messageGo to next message
Michel Cadot
Messages: 64103
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This is in the title.

Regards
Michel
Re: Pro*C problem - unable generate .exe file [message #655308 is a reply to message #468899] Fri, 26 August 2016 09:22 Go to previous messageGo to next message
bougossa
Messages: 1
Registered: August 2016
Junior Member
Hi,
recently i have encounter th same issue on windows (undefined reference to `sqlcxt') . No solution on internet , no need to search and search .


and when i change the compiler to CL i have same error message BUT the compiler add a warning message that the oci.lib and orasql12.lib are in a 64 version and the target is x86 (32 bit) .
So when replace my instant client whith the instantclient-basic-nt-12.1.0.2.0 (32 bit version) : IT WORK .

Re: Pro*C problem - unable generate .exe file [message #655309 is a reply to message #655308] Fri, 26 August 2016 09:50 Go to previous message
Michel Cadot
Messages: 64103
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Thank you for the information.

Previous Topic: ENV Vars for ProC on Linux
Next Topic:
Goto Forum:
  


Current Time: Sat Dec 03 08:17:15 CST 2016

Total time taken to generate the page: 0.07924 seconds