Skip to main content
gamedev.net
🔒 Locked

Compile ogg

Started by Metalman_pl 1 reply 250+ views
Original Post
Metalman_pl
Metalman_pl
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 found
Maybe somebody can halp me? I know that I should use /NODEFAULTLIB:libname but which lib? Thanks for any answers
DrunkenHyena
DrunkenHyena
You''re compiling your Release with Debug libraries so they conflict. Use a Release version with your Release build and all will be fine.

BTW, just because your project happens to use DirectX doesn''t mean it''s appropriate to post here. This has nothing to do with DirectX.


Stay Casual,

Ken
Drunken Hyena
Stay Casual,KenDrunken Hyena</FON
VolkerG
VolkerG
No debug/relese problem, but you''re mixing the runtime libraries (multi-/single-threaded,...). You should compile every part (exe, libraries) using the same runtime.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.