Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Compile a Pro*C program
When I compile a pro*c program,it fails,here is the information in compile,Please help to find what's the matter.Two thing to say: 1.The mytest.pc is copy from the samples from oracle. 2.When i mv mytest.pc to sample1.pc it work fine.:
mytest.pc is my code,demo_proc.mk is the makefile comes with oracle,
/**********************************************
make -f demo_proc.mk build OBJ=mytest.o EXE=mytest
cc -o mytest -L/u01/app/oracle/product/8.1.5/lib/ -lclntsh -lclient8-lclient8 -lvsn8 -lcommon8 -lskgxp8 -lgeneric8 -lmm -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 `cat
/u01/app/oracle/product/8.1.5/lib/libsql8.a
/u01/app/oracle/product/8.1.5/lib/scorept.o
/u01/app/oracle/product/8.1.5/lib/sscoreed.o
/u01/app/oracle/product/8.1.5/rdbms/lib/kpudfo.o
/u01/app/oracle/product/8.1.5/lib/nautab.o
/u01/app/oracle/product/8.1.5/lib/naeet.o
/u01/app/oracle/product/8.1.5/lib/naect.o
/u01/app/oracle/product/8.1.5/lib/naedhs.o `cat
/u01/app/oracle/product/8.1.5/network/lib/ldflags` -ln8 -lnl8 -lnro8
`cat /u01/app/oracle/product/8.1.5/network/lib/ldflags` -ln8 -lnl8
`cat /u01/app/oracle/product/8.1.5/network/lib/ldflags` -ln8 -lnl8
-lclient8 -lvsn8 -lcommon8 -lskgxp8 -lgeneric8
/u01/app/oracle/product/8.1.5/lib/libpls8.a
/u01/app/oracle/product/8.1.5/lib/libplp8.a
/u01/app/oracle/product/8.1.5/lib/libpls8.a -ltrace8 -lnls8 -lcore8
-lnls8 -lcore8 -lnls8 -lclient8 -lvsn8 -lcommon8 -lskgxp8 -lgeneric8
-lnls8 -lcore8 -lnls8 -lcore8 -lnls8 `cat
/u01/app/oracle/product/8.1.5/lib/sysliblist` -lc -lm
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [build] Error 1
*************************/
Another,can you tell me things about debug the pro*c program?
Many thanks !
Guo 2000/12/14
Received on Thu Dec 14 2000 - 01:42:13 CST