Home » RDBMS Server » Server Administration » Pro*C Compiler
Pro*C Compiler [message #50778] Fri, 05 April 2002 10:11 Go to next message
Tri
Messages: 3
Registered: April 2002
Junior Member
I have tried to compiler this file: "samples1.pc"
I have worked on Unix System and used this command:
">make -f proc.mk EXE=samples1 OBJS=samples2.o"

However the System always display error messages. Could you help me out of this. By the way after I compile it, how can I run it?

Thank you for your time and support
Tri
Re: Pro*C Compiler [message #50785 is a reply to message #50778] Sat, 06 April 2002 21:46 Go to previous message
vijendra
Messages: 2
Registered: April 2002
Junior Member
when you compiled sample1.pc file follow these steps.
step1 - make proper make file to compile your program
for this :

create make script to create object of sample1.pc

ORAINCDIR=$(ORACLE_HOME)/precomp/include
CC=cc
PROC=proc

sample1.o: sample1.c
$(CC) -c $(ORAINCDIR) sample1.pc
sample1.c: sample1.pc
$(PROC) INCLUDE=$(ORACLE_HOME) sample1.pc

then you create script to make exe of created object

cc sample1.c -o sample1 -L $(ORACLE_HOME)/lib -lcltnsh

then run this executable and get output.

vijendra
Previous Topic: Any notes or braindump for Oracle8i upgrade?
Next Topic: Re: Assigning processes to individual CPU's
Goto Forum:
  


Current Time: Sun Sep 08 10:32:35 CDT 2024