Click to See Complete Forum and Search --> : How to compile without header files in working directory


jaswin
12-16-2005, 01:12 AM
Hi.

I was able to compile and successfully execute a program earlier
written in Oracle 7 (Solaris) but 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.
If I remove them from current working directory it gives error
sqlda.h etc. not found.......

The commands used for compiling.......
1.$proc sample.pc
2.$cc -L$ORACLE_HOME/lib -L/usr/lib -lclntsh -o sample sample.c

How to compile so that the sqlca.h and sqlda.h are not to be entered in current working directory and still the program gets compiled ?

regds.
J.S.Sachdeva

hrishy
12-18-2005, 03:48 AM
Hi

You can use softlinks or include that in your path.

regards
Hrishy