Precompilers and OCI (MOSC)

MOSC Banner

Linking Pro*C library on Linux

edited Apr 13, 2011 2:14AM in Precompilers and OCI (MOSC) 3 commentsAnswered
Dear all,

I am trying to compile a Pro*C program on  Linux. It compiled successfully but I tried to link the object files it failed to link that. Here is command that used to link :

gcc -fPIC -o readgfile -p readg_x.o cdrsort.o mtcprc.o encoder.o mtcbuil.o dbtprc.o dbtbuil.o MedLib_x.o DFMLIB_x.o Dyn_SQL_x.o -L/u01/home/med/src/lib -L/u02/oradb102/product/10.2.0.1/lib/ /home/med/src/api/libnapi.a /home/med/src/api/libtabs.a -lclntsh

Here is error:

/home/med/src/readg/readg_x.c:565: undefined reference to `options'

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center