How does one compile a PRO*C program?
Submitted by admin on Mon, 2005-11-28 14:30
Body:
You can study the sample makefile provided by Oracle and construct your own, but it would probably be better to just use "make" to precompile and then compile your program in one step. Look at this Unix examples:
Oracle7:
make -f $ORACLE_HOME/precomp/demo/proc/proc.mk build EXE=myprog OBJS=myprog.o
Oracle8 and above:
make -f $ORACLE_HOME/precomp/demo/proc/demo_proc.mk build EXE=myprog OBJS=myprog.o
NOTE: OBJS and EXE have to be entered in caps!!!
»
- Log in to post comments
Comments
Hi, I tried executing above
Hi,
I tried executing above 'make' command but it returned me some errors as below
$->make -f $ORACLE_HOME/precomp/demo/proc/demo_proc.mk build EXE=first OBJS=first.0
make: 1254-002 Cannot find a rule to create target first.0 from dependencies.
Stop.
$->
Could you please help me in this?
I have Oracle 8i on Unix platform.
Thanks in advance!