realXtend / tundra

realXtend Tundra SDK, a 3D virtual world application platform.
www.realxtend.org
Apache License 2.0
84 stars 70 forks source link

MumblePlugin dependency links incorrectly to release mode VC CRT in Debug mode builds. #599

Closed juj closed 11 years ago

juj commented 11 years ago

A depencency of MumblePlugin links to release mode VC CRT in debug builds, giving

LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

For debug-mode builds, the dependencies of MumblePlugin should link to the debug DLL version of VC CRTs.

jonnenauha commented 11 years ago

Hmm, @Stinkfist0 was this fixed while the deps build stuff was updated? Afaika now we build debug for debug for speex and celt and they use the correct VS CRT? I havent at least seen this in a long while...

Stinkfist0 commented 11 years ago

Getting these still it would appear, at least when doing x64 RelWithDebInfo build. 1> qrc_mumbleplugin.cxx 1> libspeex.lib(mdf.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance 1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification 1> Creating library C:/Work/GitHub/Adminotech/Tundra_Win64/src/Application/MumblePlugin/RelWithDebInfo/MumblePlugin.lib and object C:/Work/GitHub/Adminotech/Tundra_Win64/src/Application/MumblePlugin/RelWithDebInfo/MumblePlugin.exp 1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library 1> Generating code 1> Finished generating code 1> MumblePlugin.vcxproj -> C:\Work\GitHub\Adminotech\Tundra_Win64\src\Application\MumblePlugin\RelWithDebInfo\MumblePlugin.dll 1> libspeex.lib(mdf.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance 1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification 1> Creating library C:/Work/GitHub/Adminotech/Tundra_Win64/src/Application/MumblePlugin/RelWithDebInfo/MumblePlugin.lib and object C:/Work/GitHub/Adminotech/Tundra_Win64/src/Application/MumblePlugin/RelWithDebInfo/MumblePlugin.exp 1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library

And when doing x64 Debug build: 1> qrc_mumbleplugin.cxx 1> Generating Code... 1> libspeex.lib(mdf.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance 1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification 1> Creating library C:/Work/GitHub/Adminotech/Tundra_Win64/src/Application/MumblePlugin/Debug/MumblePlugind.lib and object C:/Work/GitHub/Adminotech/Tundra_Win64/src/Application/MumblePlugin/Debug/MumblePlugind.exp 1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library 1> Generating code 1> Finished generating code 1> MumblePlugin.vcxproj -> C:\Work\GitHub\Adminotech\Tundra_Win64\src\Application\MumblePlugin\Debug\MumblePlugind.dll 1> libspeex.lib(mdf.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance 1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification 1> Creating library C:/Work/GitHub/Adminotech/Tundra_Win64/src/Application/MumblePlugin/Debug/MumblePlugind.lib and object C:/Work/GitHub/Adminotech/Tundra_Win64/src/Application/MumblePlugin/Debug/MumblePlugind.exp 1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

jonnenauha commented 11 years ago

I fixed this but forgot to mark it to the commits. Will be landing soon to rex repo also: https://github.com/Adminotech/tundra/commit/e325b68785383b3de050b56b7d0fdec6297a242b and https://github.com/Adminotech/tundra/commit/1cdcca3e7d21ab5fad92642ea3f92f38a9acd2b5