Home » Developer & Programmer » Precompilers, OCI & OCCI » How to compile without the Header files to be copied in working directory
How to compile without the Header files to be copied in working directory [message #151519] Thu, 15 December 2005 05:23
jaswin
Messages: 11
Registered: December 2005
Location: India
Junior Member
Hi.
I was able to compile and successfully execute a program earlier
written in Oracle 7 (Solaris) Now in Oracle 10G (Linux). The only
problem is that I have to include two header files
sqlca.h and sqlda.h in the present working directory.How to enter them in the linking command so that I do not need to
copy them everytime in the current working direcotry ?

I have used the following commands :
$ proc sample.pc
$ cc -L$ORACLE_HOME/lib -L/usr/lib -lclntsh -o sample sample.c

regds.
J.S.S
Previous Topic: Bench Mark Results
Next Topic: How to call Pro*C program from C++ program
Goto Forum:
  


Current Time: Thu Mar 28 03:47:36 CDT 2024