Re: Libraries to link ( Pro*C executable with SQL*Net2.0 )

From: Tim Boemker <tim_boemker_at_zacatecas.optimum.com>
Date: 1995/07/18
Message-ID: <3uh3v8$ii6_at_jalisco.optimum.net>#1/1


[comments about unwieldy nature of Oracle makefiles for Pro*C, etc.]

The best solution I was able to come up with is to use Oracle's makefiles to compile a sample program, then write a makefile (or portion thereof, to be included as appropriate) with the same effect. My OCI makefile, for example, looks like this:

    CPPFLAGS += -I$(ORACLE_HOME)/rdbms/demo

    LDFLAGS += -L$(ORACLE_HOME)/lib

    LDLIBS += \

        $(ORACLE_HOME)/lib/libocic.a \
        $(ORACLE_HOME)/lib/osntab.o \

-lsqlnet -lora \
-lsqlnet -lora \
-lnlsrtl -lcv6 -lcore \
-lnlsrtl -lcv6 -lcore \
-lm

and I use it by putting "include oci.mk" near the tops of the makefiles that produce OCI programs.

Tim Boemker
Optimum Group
(513) 577-7785 Received on Tue Jul 18 1995 - 00:00:00 CEST

Original text of this message