Re: Pro C++ linking error

From: hhac <hhac_at_my-deja.com>
Date: Mon, 18 Oct 1999 23:20:38 GMT
Message-ID: <7ug9vt$8pu$1_at_nnrp1.deja.com>


I had to add extern "C" { before #include <oci.h>

In article <7u7ofm$s6q$1_at_nnrp1.deja.com>,   hhac <hhac_at_my-deja.com> wrote:
>
>
> I am using Microsoft Visual C++ and Oracle's Pro C++ and I'm getting
> the following linking error:
>
> OracleInitializer.obj : error LNK2001: unresolved external
symbol "void
> __cdecl sqlcxt(void * *,unsigned long const *,struct sqlexd *,struct
> sqlcxp const *)" (?sqlcxt_at__at_YAXPAPAXPBKPAUsqlexd@@PBUsqlcxp@@@Z)
>
> I have added sqllib80.lib to the library modules of the project
> settings.
>
> I have installed the Pro C/C++ sdk.
>
> I have a file called Oracle.pc that is pre-compiled by proc.exe and
> this works fine.
>
> Oddly enough a similar Pro C example (Sample1) compiles fine.
>
> Is there a specific project setting that I have to change?
>
> Any help would be appreciated.
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Tue Oct 19 1999 - 01:20:38 CEST

Original text of this message