Re: MSVC5.0 linker errors, please help
Date: 1997/07/20
Message-ID: <01bc94df$8ed20e40$0100007f_at_gertrijs>#1/1
your c++ compiler thinks sqlcxt is a c++ function. therefore it will change
the name of all functions you call (lookup namemangling in help) according
to their parameters.
you have to 'tell' the compiler that sqlcxt is a C function, the easiest
way to do that is to guard all oracle include files like this:
extern "C"
{
#include ...
#include ...
}
hth
gert
Joseph Hodge <hodgej_at_worldnet.att.net> wrote in article
<01bc945b$b9b939f0$5f0492cf_at_hmis2>...
> This is the first time I have ever tried Pro*C for Windows NT.
> At work Pro*C is installed and that is where I ran the precompiler
against
> DAEMON.PC (Which is in the documentation). At Home I have MSVC 5.0 and am
> dialed up remotely to work and am having problems thinking the DAEMON.C
> code. I get the following error:
>
> unresolved external symbol "void __cdecl sqlcxt(void * *,unsigned long
> const *,struct sqlexd *,struct sqlcxp const *)"
> (?sqlcxt_at__at_YAXPAPAXPBKPAUsqlexd@@PBUsqlcxp@@@Z)
>
> I am pathed to SQLLIB18.LIB and have included that library in my make
file.
> Additionally I have tried linking the SQXLIB18.LIB and still have the
> unresolved external symbol problem.
>
> Can anyone help me solve this problem ?
>
>
Received on Sun Jul 20 1997 - 00:00:00 CEST
