Linking problems VC++ and CVF

Linking problems VC++ and CVF

Hi,
I'm calling a CVF subroutine from VC++ and getting the following link errors.
Thanks for any help.

Linking... 
libcd.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCRTD.dll) 
libcd.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrtd.lib(MSVCRTD.dll) 
libcd.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in msvcrtd.lib(MSVCRTD.dll) 
libcd.lib(dbgheap.obj) : error LNK2005: _malloc already defined in msvcrtd.lib(MSVCRTD.dll) 
libcd.lib(dbgheap.obj) : error LNK2005: _realloc already defined in msvcrtd.lib(MSVCRTD.dll) 
libcd.lib(dbgheap.obj) : error LNK2005: _free already defined in msvcrtd.lib(MSVCRTD.dll) 
libcd.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrtd.lib(cinitexe.obj) 
libcd.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrtd.lib(cinitexe.obj) 
libcd.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrtd.lib(cinitexe.obj) 
libcd.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrtd.lib(cinitexe.obj) 
libcd.lib(xtoa.obj) : error LNK2005: __ltoa already defined in msvcrtd.lib(MSVCRTD.dll) 
libcd.lib(winsig.obj) : error LNK2005: _signal already defined in msvcrtd.lib(MSVCRTD.dll) 
libcd.lib(strchr.obj) : error LNK2005: _strchr already defined in msvcrtd.lib(MSVCRTD.dll) 
msvcrtd.lib(MSVCRTD.dll) : error LNK2005: __setmbcp already defined in libcd.lib(mbctype.obj) 
LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library 
LINK : warning LNK4098: defaultlib "libcd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library 
dfor.lib(DFORMAIN.OBJ) : error LNK2001: unresolved external symbol _MAIN__ 
Debug/Interpret.exe : fatal error LNK1120: 1 unresolved externals 
Error executing link.exe. 
 
Interpret.exe - 16 error(s), 2 warning(s)
2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

You have the dreaded MCLS (Multiple C Library Syndrome). We've had two articles on this in the Visual Fortran Newsletter. The first is here, but it was updated in Issue 10 (available to registered users only at the moment) for 6.6. If you register, you'll get a copy.

Steve

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today