Re: PRO C compilation and ORACLE library

From: Dave Nels <DaveN_at_Selectcorp.com>
Date: 1997/11/05
Message-ID: <01bcea3c$76ae4100$a91b24d1_at_daven.selectcorp.com>#1/1


This is a multi-part message in MIME format.

------=_NextPart_000_01BCEA12.8DDFDA20
Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit

Add 'CODE=CPP' to PRO*C command line in make file to fix problem. NOTE: by doing so will mean that you will not be able to use host variables declared outside of a 'DECLARE SECTION' directly in a PL/SQL block. Only other solution is to manual edit output of precompiler and add 'extern "C" {}' around function prototypes that precompiler adds to top of file (of which, sqlcxt() is one). Good luck!

-- 
Regards,
Dave Nels

Please Note:
Email address has been modified; remove '---' to reply




Thierry Giguere <gigueret_at_bigfoot.com> wrote in article
<01bce9d2$4725e100$7547fac2_at_hull--internet->...

> I'm a newcomer in programming in C++ on UNIX. I have the following
system
> HP 10.20 with HP aC++ Compiler S800 V A.01.04 upgrade with the patch V
> A.01.07
>
> The source have been preprocess with PRO C
> A got the following message when I'm compile my program
>
> /opt/aCC/lbin/ld/: Unsatisfied symbols :
> sqlcxt(void **, unsigned long *, sqlexd *, const sqlcxp *) (code)
>
> I understand that this problem is an unsolveved extern reference but
which
> ORACLE
> library contain this definition and how can I know which library contain
> what?
>
>
> To reply please remove the z at the beginning
> zgigueret_at_bigfoot.com
> zgigueret_at_icotech.com
>
------=_NextPart_000_01BCEA12.8DDFDA20 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <html><head></head><BODY bgcolor=3D"#FFFFFF"><p><font size=3D3 = color=3D"#000000" face=3D"Arial">Add 'CODE=3DCPP' to PRO*C command line = in make file to fix problem. NOTE: by doing so will mean that you will = not be able to use host variables declared outside of a 'DECLARE = SECTION' directly in a PL/SQL block. Only other solution is to manual = edit output of precompiler and add 'extern &quot;C&quot; {}' around = function prototypes that precompiler adds to top of file (of which, = sqlcxt() is one). Good luck!<br>-- <br>Regards,<br>Dave = Nels<br><br>Please Note:<br>Email address has been modified; remove = '---' to reply<br><br><br><br><br>Thierry Giguere &lt;<font = color=3D"#0000FF"><u>gigueret_at_bigfoot.com</u><font = color=3D"#000000">&gt; wrote in article &lt;<font = color=3D"#0000FF"><u>01bce9d2$4725e100$7547fac2_at_hull--internet-</u><font = color=3D"#000000">&gt;...<br>&gt; I'm a newcomer in programming in C++ = on UNIX. &nbsp;I have the following system <br>&gt; HP 10.20 &nbsp;with = HP aC++ Compiler S800 V &nbsp;A.01.04 upgrade with the patch V<br>&gt; = A.01.07<br>&gt; <br>&gt; The source have been preprocess with PRO = C<br>&gt; A got the following message when I'm compile my = program<br>&gt; <br>&gt; /opt/aCC/lbin/ld/: &nbsp;Unsatisfied = symbols=A0:<br>&gt; sqlcxt(void **, unsigned long *, sqlexd *, const = sqlcxp *) (code)<br>&gt; <br>&gt; I understand that this problem is an = unsolveved extern reference but which<br>&gt; ORACLE<br>&gt; library = contain this definition and how can I know which library contain<br>&gt; = what?<br>&gt; <br>&gt; <br>&gt; To reply please remove the z at the = beginning<br>&gt; <font = color=3D"#0000FF"><u>zgigueret_at_bigfoot.com</u><font = color=3D"#000000"><br>&gt; <font = color=3D"#0000FF"><u>zgigueret_at_icotech.com</u><font = color=3D"#000000"><br>&gt; </p> </font></font></font></font></font></font></font></font></font></body></h= tml> ------=_NextPart_000_01BCEA12.8DDFDA20--
Received on Wed Nov 05 1997 - 00:00:00 CET

Original text of this message