Home » Developer & Programmer » Precompilers, OCI & OCCI » Compilie and Run a Pro*C program
Compilie and Run a Pro*C program [message #93933] Mon, 21 April 2003 11:39 Go to next message
Messages: 154
Registered: February 2000
Senior Member
I am trying to compile Pro*C program in HP-UX.

I tried two ways that books/references talked about.


1. precompiled the sample1.pc to sample1.c file - OK
2. compiled sample1.c program to sample1.o file - OK
3. $ make -f build EXE=/tmp/sample1 OBJS=sample1.o
Make: Cannot open build. Stop. - NOT OK


make -f proc.mk sample1

Above command is straigt from the link,


$ make -f proc.mk sample1
Make: Cannot open proc.mk. Stop.

What could be wrong? Any ideas?

Can some one send me a clear instruction as to how to compile and run a Pro*C program in Unix?

Re: Compilie and Run a Pro*C program [message #93935 is a reply to message #93933] Tue, 29 April 2003 01:50 Go to previous message
Messages: 92
Registered: May 2001
in second case, you have to copy the make file from
$ORACLE_HOME/precomp/demo/proc.File name is demo_proc.mk.Check out whatz in ur machine.
Add ur file name in that file and compile it as follow:

make -f demo_proc.mk "yourfilename"
if you are compiling sample1.pc
make -f demo_proc.mk sample1

Previous Topic: Precompilation
Next Topic: where can I get sourcecode for "SQL language interpreter"?
Goto Forum:

Current Time: Mon May 27 10:34:13 CDT 2024