Home » Developer & Programmer » Precompilers, OCI & OCCI » Error in compiling ProC program
Error in compiling ProC program [message #150088] Tue, 06 December 2005 04:14
jaswin
Messages: 11
Registered: December 2005
Location: India
Junior Member
Hi !

I have written a Pro*c program with Oracle 7 version (Solaris). It works fine . But when now USING Oracle 10G (Linux)...I am trying to compile it , I could convert the sample.pc into sample.c using the command
$proc sample.pc.......

But using the gcc command when I try to generate the executable code......I get the error........as shown below....

$ gcc -o sample sample.c
/tmp/cc24QDcV.o(.text+0x74): In function `main': : undefined reference to sqlca'

/tmp/cc24QDcV.o(.text+0x19f): In function `main':
: undefined reference to `sqlcxt'

/tmp/cc24QDcV.o(.text+0x205): In function `main':
: undefined reference to `sqlca'

/tmp/cc24QDcV.o(.text+0x361): In function `main':
: undefined reference to `sqlcxt'
collect2: ld returned 1 exit status

Can anyone pls. point out the cause and remedy for this error....

regds.
J.S.Sachdeva
Previous Topic: Number of rows fetched
Next Topic: Information About proc*
Goto Forum:
  


Current Time: Sat Nov 23 20:30:14 CST 2024