Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Compile a Pro*C program

Compile a Pro*C program

From: Guo zhenfeng <gzf_at_cstnet.net.cn>
Date: Thu, 14 Dec 2000 15:42:13 +0800
Message-ID: <3A3879D5.E9BD53A9@cstnet.net.cn>

   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

/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
-lclient8 -lvsn8 -lcommon8 -lskgxp8 -lgeneric8 -lmm -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 `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 -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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US