Original Post
Hello
I''m trying to compile my program (ogg player with directsound) and everything is ok in "Debug" but problems starts when I try to compile it in "Release". I have error like this below
Linking... LINK : warning LNK4075: ignoring ''/EDITANDCONTINUE'' due to ''/INCREMENTAL:NO'' specification MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _malloc already defined in LIBCD.lib(dbgheap.obj) MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _realloc already defined in LIBCD.lib(dbgheap.obj) MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _toupper already defined in LIBCD.lib(toupper.obj) 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(MSVCR70D.dll) : error LNK2005: _memmove already defined in LIBCD.lib(memmove.obj) MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _floor already defined in LIBCD.lib(floor_pentium4.obj) MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _ldexp already defined in LIBCD.lib(ldexp.obj) MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _fclose already defined in LIBCD.lib(fclose.obj) MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _fprintf already defined in LIBCD.lib(fprintf.obj) MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _fopen already defined in LIBCD.lib(fopen.obj) MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _sprintf already defined in LIBCD.lib(sprintf.obj) MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _memchr already defined in LIBCD.lib(memchr.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 ''LIBCMTD'' conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib ''MSVCRTD'' conflicts with use of other libs; use /NODEFAULTLIB:library Debug/Battlefield.exe : fatal error LNK1169: one or more multiply defined symbols foundMaybe somebody can halp me? I know that I should use /NODEFAULTLIB:libname but which lib? Thanks for any answers