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
sri
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.

I.

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

II.

make -f proc.mk sample1

Above command is straigt from the link,

http://www.znow.com/sales/oracle/appdev.816/a76942/pc_01int.htm#1048

$ 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?

Thx,
Sri
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
GIRIDHAR KODAKALLA
Messages: 92
Registered: May 2001
Member
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

HTH
Giridhar
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