Linking problems

Linking problems

Hello! Ive got following errors while compiling sources with last version of icl:

xilink6: executing 'D:PROGRA~1MICROS~3VC98Binlink.exe'
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(crt0init.obj) : warning LNK4006: ___xc_z already defined in msvcrt.lib(cinitexe.obj); second definition ignored
libcmt.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in msvcrt.lib(cinitexe.obj); second definition ignored
libcmt.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in msvcrt.lib(cinitexe.obj); second definition ignored
libcmt.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in msvcrt.lib(cinitexe.obj); second definition ignored
Creating library ..Output/PLI2.lib and object ..Output/PLI2.exp
LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "nafxcw.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
msvcrt.lib(cinitexe.obj) : warning LNK4098: defaultlib "libcmt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
libcmt.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
e:NightBuilderTestBinPLI2.dll : fatal error LNK1120: 1 unresolved externals
Error executing xilink6.exe.

But in MSVC60 there are no errors at all. I have such options in all my projects:

/G6 /MDd /W3 /Gm /GX /Zi /Od /I "..IncludeStlport" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "_WINDLL" /D "_AFXDLL"
use MFC a Shared DLL

Also Im using STLPort 4.6.2 (inc. its streams) and boost. Ive compiled STLPort using intel50.mak without any macros in stl_configure.h. And stlport_icl.lib is now using.

There were some suggestions about checking if STLPorts and all projects options are compatible. But its looks so
Ive tried to use /NODEFAULTLIB:msvcrt.lib option, but than problems with compiling in MSVC started.

Maybe someone knows whats wrong Im doing?

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.