Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Can't compile C file generated by Pro*C/C++

Re: Can't compile C file generated by Pro*C/C++

From: <steyaert_at_my-deja.com>
Date: Thu, 20 Jan 2000 21:10:38 GMT
Message-ID: <867tk0$mtm$1@nnrp1.deja.com>


Officially with Oracle Support, you should use the make file in $ORACLE_HOME/precomp/demo, demo_proc.mk. Personally, we pulled out their libraries and found the actual libraries that are required on Linux. Here's my library path, used with the final linking of Oracle executables.

-L$ORACLE_HOME/lib -L/usr/lib -lc -lclntsh -lsql8 -lclient8

          -lvsn8 -lcommon8 -lmm -lgeneric8 -lcore8 -ldl -lm

In article <38871411.36F816C9_at_nat.fr>,
  n.roux_at_nat.fr wrote:
> I'm working under Linux and with Oracle 8i. ( 8.1.5.0.0)
>
> My problem is that I can't compile my C file which was generated by
the
> Pro*C/C++ .
> It returns this error :
>
> -> undefined reference to 'sqlcxt(void **, unsigned int *, sqlexd,
> sqlcxp const*)'
> -> collect2 : ld returned 1 exit status
>
> sqlcxt is an extern function called by pro*C/C++. I can't find this
> function in Oracle's libraries.
> What must I do?
>
> Thanks!
>
>

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Thu Jan 20 2000 - 15:10:38 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US