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

Home -> Community -> Usenet -> c.d.o.misc -> Re: newbie question - error compiling pro*c

Re: newbie question - error compiling pro*c

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: 17 Aug 2001 08:24:10 -0700
Message-ID: <9ljcuq0ecc@drn.newsguy.com>


In article <3B7D1124.466B2B06_at_yahoo.com>, Huntress says...
>
>Hi all,
>This is my first attempt at a pro*c application. It's just a little test
>program, but I can't even get it to compile. I have a makefile. The
>program compiles to the linker, but the linker says
>
>----------------------------------------------------------------------------
>cc testQuery.c -L/epd_fs/ora1/app/oracle/product/8.1.6/lib/ -L -L `cat
>/epd_fs/ora1/app/oracle/product/8.1.6/lib/syslib
>list` -R /epd_fs/ora1/app/oracle/product/8.1.6/lib -laio -lm -o

the oracle libs aren't listed there.

that ld line would be really big if they were there. In your makefile, you have:

> $(CC) testQuery.c -L$(LIBHOME) -L$(PRODLIBS) -L$(LDLIBS) -o

but that should be

PROLDLIBS not PRODLIBS

You can see:
http://osi.oracle.com/~tkyte/proc_makefile/

for how I do this (but I use the demo makefiles which I don't believe you have -- you might consider getting them -- very useful)

--
Thomas Kyte (tkyte@us.oracle.com)             http://asktom.oracle.com/ 
Expert one on one Oracle, programming techniques and solutions for Oracle.
http://www.amazon.com/exec/obidos/ASIN/1861004826/  
Opinions are mine and do not necessarily reflect those of Oracle Corp 
Received on Fri Aug 17 2001 - 10:24:10 CDT

Original text of this message

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