Pro*C problem - unable generate .exe file [message #436710] |
Sat, 26 December 2009 06:51 |
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.
|
|
|
|
|
|
|