Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> C++ parser: migration from 7.3.4.0 to 8.1.4
Hi folks,
I'm having a little trouble migrating a C++ database parser on unix from 7.3.4.0 to 8.1.4 due to my inexperience of using Oracle. The main problems are due to the order and repetition of the libraries in the Makefile.
The 7.3.4.0 makefile line is:
#DBLIBS=-lsql $(ORACLE_HOME)/lib/osntab.o -lsqlnet -lora -lsqlnet
-lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore
or
DBLIBS=-lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric
-lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3
-lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -ldl
The first line is commented out and the second used instead, can anybody explain why? DBLIBS is then used in the C++ compiler call:
DBParser: main.cc DBParse_database.h DBParse_database.o DBParser.o
$(ACC) $(CFLAGS) -o DBParser $(INCPATH) -I$(DB_INCLUDE)
-L$(DB_LIB_PATH) -L. -L$(GT_HOME)/gt_lib main.cc DBParser.o
DBParse_database.o $(DBLIBS) -lgtbc -lgtgen -lsocket -lnsl
ACC simply points to the CC command. CFLAGS is -g -DORACLE. INCPATH points to include files. DB_INCLUDE is $(ORACLE_HOME)/precomp/public. DB_LIB_PATH is $(ORACLE_HOME)/lib. GT_HOME points to our custom libraries.
Can anybody tell me the easiest method to build the parser against 8.1.4 or at least point me in the right direction.
Thanks for your help in advance,
Regards,
Euan Received on Fri Oct 05 2001 - 08:43:54 CDT