Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Linking problems VC++ and CVF

mrjensen
Beginner
658 Views
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)
0 Kudos
1 Reply
Steven_L_Intel1
Employee
658 Views
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
0 Kudos
Reply