[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Compiling under windows
If you're building the libraries with a project that's set for
multi-threaded code generation, you need to have your client
project set that way, too. It looks like you've mixed singe-
and multi-threaded environments.
> -----Original Message-----
> From: De Leeuw guy [mailto:G.De_Leeuw@eurofer.be]
> Sent: Wednesday, October 04, 2000 1:02 PM
> To: openldap-software@OpenLDAP.org
> Subject: Compiling under windows
>
>
> Hi,
>
> I have a project client under windows.
> In an .h file I include the line :
> #include "ldap.h"
>
> I add the oldap32.lib and olber32.lib into the project ==>
> setting ==> link
> when I compile my project I receive this error :
>
> --------------------Configuration: EurAds - Win32
> Release--------------------
> Linking...
> LIBCMT.lib(dosmap.obj) : error LNK2005: __errno already defined in
> msvcrt.lib(MSVCRT.dll)
> LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in
> msvcrt.lib(MSVCRT.dll)
> LIBCMT.lib(crt0dat.obj) : error LNK2005: __exit already defined in
> msvcrt.lib(MSVCRT.dll)
> LIBCMT.lib(winxfltr.obj) : error LNK2005: __XcptFilter
> already defined in
> msvcrt.lib(MSVCRT.dll)
> LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in
> msvcrt.lib(cinitexe.obj)
> LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in
> msvcrt.lib(cinitexe.obj)
> LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in
> msvcrt.lib(cinitexe.obj)
> LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in
> msvcrt.lib(cinitexe.obj)
> LIBCMT.lib(strchr.obj) : error LNK2005: _strchr already defined in
> msvcrt.lib(MSVCRT.dll)
> LIBCMT.lib(getenv.obj) : error LNK2005: _getenv already defined in
> msvcrt.lib(MSVCRT.dll)
> msvcrt.lib(MSVCRT.dll) : error LNK2005: __setmbcp already defined in
> LIBCMT.lib(mbctype.obj)
> LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts
> with use of other
> libs; use /NODEFAULTLIB:library
> LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with
> use of other
> libs; use /NODEFAULTLIB:library
> LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
> Release/EurAds.exe : fatal error LNK1120: 1 unresolved externals
> Error executing link.exe.
>
> EurAds.exe - 13 error(s), 2 warning(s)
>
> It use the correct .lib files ??
> How to correct this problem
>
> Thank's in advance
>
>
> Guy De Leeuw
> EDP Manager
> Eurofer ASBL
> 211, rue du noyer
> 1000, Bruxelles
> Belgium
> Phone : +32 (2) 738 79 40
> Fax : +32 (2) 736 28 22
> E-Mail : mailto:G.De_Leeuw@eurofer.be
>