Re: Pro*C Linking
From: Lothar Seitter <seitter_at_informatik.uni-freiburg.de>
Date: 1996/07/16
Message-ID: <4sfgj6$ep1_at_n.ruf.uni-freiburg.de>#1/1
Date: 1996/07/16
Message-ID: <4sfgj6$ep1_at_n.ruf.uni-freiburg.de>#1/1
Paul Smith (psmith_at_sprynet.co.uk) wrote:
: The best way is to look iin $ORACLE_HOME/proc/demos for Oracle's sample make file, called proc.mk. This should reference all
: of the libraries needed on your platform. You can either use the make file, or use it as a model and add your own customisations,
: depending on your situation.
If you like puzzles or you want to see a really bad example of
a makefile, look in proc.mk.
Otherwise the following might help you:
I use these object-files and libraries to link Pro*C(++) code on Solaris 2.4 with gcc 2.7.2.
ORACLE_OBJS = $(ORACLE_LIBDIR)/__fstd.o \ $(ORACLE_LIBDIR)/osntab.o # don't remove a library, although core3 is twice;# removing of one core3 causes an binding error # in my programs, don't know why...
ORACLE_LIBS = -L$(ORACLE_LIBDIR) \ -lsql -lsqlnet -lora -lsqlnet -lpls -lora \ -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 \ -lsocket -lnsl -lm -ldl -laio
greetings,
Lothar Seitter Received on Tue Jul 16 1996 - 00:00:00 CEST