Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Help! I can't link Pro-C files under 7.3.2
copy the proc*.mk to your directory and try it. If it works, start chopping it down.
Look under the $ORACLE_HOME directory for the proc* directory.
Look under the proc* directory for demo
If the demos were not installed try the lib directory.
oracle (oracle_at_nightmare.com) wrote:
: ------------2ADF47E9795D4
: Content-Transfer-Encoding: 7bit
: Content-Type: text/plain; charset=us-ascii
: Ken Frank wrote:
: >
: > I am trying to compile some C programs which use embedded SQL,
: > but am not having any luck getting anything to link. I am doing this
: > on an RS6000 (AIX 4.1.5) and Oracle 7.3.2.
: >
: > I'm able to precompile (with "proc") fine, but am unable to figure out
: > what libraries I need to link against.
: >
: > Here's what my C-Compile command looks like:
: >
: > cc $FILE.c -o $FILE.exe -DUNIX -DAIX -DORACLE \
: > -I$MY_INCL_DIR \
: > -lc -lm \
: > -L$MY_LIB_DIR -lmylib \
: > -L$ORACLE_HOME/lib \
: > -lsql -lsqlnet -lnlsrtl3 -lc3v6 -lcore3 -lld -lxa
: >
: > However, compile fails at link-time with these errors:
: >
: > ld: 0711-317 ERROR: Undefined symbol: .upih2o
: > ld: 0711-317 ERROR: Undefined symbol: .upiico
: > ld: 0711-317 ERROR: Undefined symbol: .upipi
: > [about 40 lines snipped]
: > ld: 0711-317 ERROR: Undefined symbol: .upihmi
: > ld: 0711-317 ERROR: Undefined symbol: .upidsc
: > ld: 0711-317 ERROR: Undefined symbol: .kpurpc
: > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
: > information.
: >
: > I've searched every ".a" file in $ORACLE_HOME/lib and cannot
: > find ANY of these symbols ("grep", and "ar -tv | grep"). I've
: > also seen mention of a "-lora", but we don't have any files
: > ANYWHERE called "libora.a".
: >
: > Forgive my cluelessness, but I don't have any manuals, and I'm
: > used to Ingres (cc $FILE.c -L$ING_LIB_DIR -lingres -lc -lm), and
: > Oracle's libraries have me completely confused! The "demo"
: > proc.mk file didn't enlighten me any, either.
: >
: > Thanks in advance,
: > Ken Frank
: > ken_at_mn.csoft.com
: Those objects are defined in oracle client archive. Include either
: -lclient or the shared library -lclntsh. They should then be defined.
: I would use oracles proc.mk file as a template and just make changes to
: it.
: ------------2ADF47E9795D4
: Content-Transfer-Encoding: 7bit
: Content-Type: text/html; charset=us-ascii
: <HTML><BODY>
: <DT>Ken Frank wrote:<BR>
: > <BR>
: > I am trying to compile some C programs which use embedded SQL,<BR>
: > but am not having any luck getting anything to link. I am doing
: this<BR>
: > on an RS6000 (AIX 4.1.5) and Oracle 7.3.2.<BR>
: > <BR>
: > I'm able to precompile (with "proc") fine, but am unable
: to figure out<BR>
: > what libraries I need to link against.<BR>
: > <BR>
: > Here's what my C-Compile command looks like:<BR>
: > <BR>
: > cc $FILE.c -o $FILE.exe -DUNIX -DAIX -DORACLE \<BR>
: > -I$MY_INCL_DIR
: \<BR>
: > -lc -lm
: \<BR>
: > -L$MY_LIB_DIR
: -lmylib
: \<BR>
: > -L$ORACLE_HOME/lib
: \<BR>
: > -lsql -lsqlnet -lnlsrtl3
: -lc3v6 -lcore3 -lld -lxa<BR>
: > <BR>
: > However, compile fails at link-time with these errors:<BR>
: > <BR>
: > ld: 0711-317 ERROR: Undefined symbol: .upih2o<BR>
: > ld: 0711-317 ERROR: Undefined symbol: .upiico<BR>
: > ld: 0711-317 ERROR: Undefined symbol: .upipi<BR>
: > [about 40 lines snipped]<BR>
: > ld: 0711-317 ERROR: Undefined symbol: .upihmi<BR>
: > ld: 0711-317 ERROR: Undefined symbol: .upidsc<BR>
: > ld: 0711-317 ERROR: Undefined symbol: .kpurpc<BR>
: > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more<BR>
: > information.<BR>
: > <BR>
: > I've searched every ".a" file in $ORACLE_HOME/lib and cannot<BR>
: > find ANY of these symbols ("grep", and "ar -tv | grep").
: I've<BR>
: > also seen mention of a "-lora", but we don't have any files<BR>
: > ANYWHERE called "libora.a".<BR>
: > <BR>
: > Forgive my cluelessness, but I don't have any manuals, and I'm<BR>
: > used to Ingres (cc $FILE.c -L$ING_LIB_DIR -lingres -lc -lm), and<BR>
: > Oracle's libraries have me completely confused! The "demo"<BR>
: > proc.mk file didn't enlighten me any, either.<BR>
: > <BR>
: > Thanks in advance,<BR>
: > Ken Frank<BR>
: > ken_at_mn.csoft.com<BR>
: </DT>
: <DT>Those objects are defined in oracle client archive. Include either
: -lclient or the shared library -lclntsh. They should then be defined.
: I would use oracles proc.mk file as a template and just make changes to
: it.</DT>
: <DT> </DT>
: <DT> </DT>
: </BODY>
: </HTML>
: ------------2ADF47E9795D4--
-- This posting represents the personal opinions of the author. It is not the official opinion or policy of the author's employer. Warranty expired when you opened this article and I will not be responsible for its contents or use.Received on Fri Feb 21 1997 - 00:00:00 CST