Re: Pro*C compiler for 8i (8.1.5)
Date: Mon, 20 Sep 1999 07:16:08 -0400
Message-ID: <37E61778.1F92FFBF_at_mitre.org>
See below for what I use for 8.1.5 under Solaris 2.7.
This is pretty much a simplified version of what the Oracle demo
makefile uses.
Note that I'm using the Sun C compiler; some changes in the CFLAGS might
be required for GCC.
Peter
ORA815_CFLAGS = \
-c -g -Xc -xstrconst -xF \ -D_REENTRANT $(ORA_C_INC_PATH) -KPIC \ -I. -I$(ORA)/precomp/public -I$(ORA)/rdbms/public -I$(ORA)/plsql/public\
-I$(ORA)/network/public \
-DSLMXMX_ENABLE -DSLTS_ENABLE -D_SVID_GETTOD ORA815_LIBS = \
-L$(ORA)/lib/ -lclntsh -lclient8 $(ORA)/lib/libsql8.a $(ORA)/lib/scorept.o \
$(ORA)/lib/sscoreed.o $(ORA)/rdbms/lib/kpudfo.o \ `cat $(ORA)/lib/ldflags` \
-lnl8 -lclient8 -lvsn8 -lcommon8 -lskgxp8 -lgeneric8 \ $(ORA)/lib/libpls8.a $(ORA)/lib/libplp8.a $(ORA)/lib/libpls8.a \ `cat $(ORA)/lib/sysliblist` \s8 \
-lm -lthread
Jeff Brocious wrote:
>
> hey,
>
> We're trying to get the Pro*C compiler working in 8i. So far, we can't find
> the right combination of oracle libraries to get the finished executable all
> linked together. I've tried using the makefile from the demo directory, but
> can't get that to work. We still end up with 30-35 undefined references.
> We don't need anything fancy, just the basic Pro*C stuff - no threads, OCI,
> etc. We're running this on Sun Solaris 2.6 and DEC Alpha 4.0D. If anyone
> has any hints or tips, they would be greatly appreciated. Thanks.
>
> Jeff
Received on Mon Sep 20 1999 - 13:16:08 CEST