0
0

Hi,

I can compile the samples fine, but when I try to play mods (using the same sample code) in my own win32 windows project i get the following link errors:

Linking…
MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _free already defined in LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _calloc already defined in LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(ti_inst.obj) : error LNK2005: “private: __thiscall type_info::type_info(class type_info const &)” (??0type_info@@AAE@ABV0@@Z) already defined in LIBCD.lib(typinfo.obj)
MSVCRTD.lib(ti_inst.obj) : error LNK2005: “private: class type_info & __thiscall type_info::operator=(class type_info const &)” (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCD.lib(typinfo.obj)
LINK : warning LNK4098: defaultlib ‘MSVCRTD’ conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/music.exe : fatal error LNK1169: one or more multiply defined symbols found

I am using MSVC.NET. Does anybody know what these errors mean? If I create a console app I do not get these errors.

Any help would be most gratefully received!

Cheers

  • You must to post comments
0
0

Hmm… I’ve got it to compile by changing the Input Linker options in the project’s property pages.

If i tell the linker to ignore msvcrtd.lib, it works.

If anybody can explain to me why this is i’d be most grateful!

Thanks

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.