undefined reference to `sqlcxt' (Pro C compilation problem)

From: ferdous <ferdous_at_iitg.ernet.in>
Date: 4 Jul 2003 04:09:46 -0700
Message-ID: <59e6e73a.0307040309.2f2f61b4_at_posting.google.com>


Hi
  Greetings to all
   I am new to ProC. I am compiling a very simple program written in ProC. I can compile the program using proc filename.pc and it generates the corresponding c code :) , but when i try to compile the C program using

 cc -O3 -DPRECOMP -I. -I/opt/oracle/products/9.2.0/rdbms/public

-I/opt/oracle/products/9.2.0/precomp/public
-I/opt/oracle/products/9.2.0/rdbms/demo
-I/opt/oracle/products/9.2.0/plsql/public
-I/opt/oracle/products/9.2.0/network/public -DLINUX -D_GNU_SOURCE
-D_GNU_SOURCE -DSLTS_ENABLE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS
-L /opt/oracle/products/9.2.0/precomp/lib/ -L
/opt/oracle/products/9.2.0/lib/ -L
/opt/oracle/products/9.2.0/lib/stubs/ filename.c -ldl -lm -lpthread
-lnsl -o filename

   the result is an error reporting LIKE THIS

filename.c: In function `main':
filename.c:152: warning: return type of `main' is not `int'

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

  I also tried using
make -f /opt/oracle/products/9.2.0/precomp/demo/proc/demo_proc.mk filename, but here also unfortunately same situation.

Can any one have any idea what can be done??? Thanx in advance.

Ferdous Received on Fri Jul 04 2003 - 13:09:46 CEST

Original text of this message