_free, _malloc already defined in libc.lib
-
Getting these compile errors Linking... MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in libc.lib(free.obj) MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in libc.lib(malloc.obj) I typed in NODEFAULTLIB:library based on this warning defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:library but it didnt resolve the problem. thanks, sb
-
Getting these compile errors Linking... MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in libc.lib(free.obj) MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in libc.lib(malloc.obj) I typed in NODEFAULTLIB:library based on this warning defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:library but it didnt resolve the problem. thanks, sb
Did you try google[^] ? There's a lot of similar questions... Check also MSDN[^] (although it might be a bit different).
Cédric Moonen Software developer
Charting control [v1.3] -
Getting these compile errors Linking... MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in libc.lib(free.obj) MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in libc.lib(malloc.obj) I typed in NODEFAULTLIB:library based on this warning defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:library but it didnt resolve the problem. thanks, sb
I suspect it's because
free()
andmalloc()
are already defined in libc.lib... ;P[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]