[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
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