Page 1 of 1
warning when compiling dsgame server
Posted: Tue Nov 20, 2012 5:12 pm
by giuseppo
I get this warning when compiling the game server with vistual c++
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
No errors though- should I worry about this?
Re: warning when compiling dsgame server
Posted: Tue Nov 20, 2012 8:18 pm
by whasf
Nah, just a warning
Re: warning when compiling dsgame server
Posted: Wed Nov 21, 2012 7:06 am
by codiddle
I normally don't have any problems compiling the server. However, I've just recently reinstalled a fresh copy of Windows 7. I was able to build an old client, from August. When I go to compile the latest though, there's a linker error about MSVC 2010 Pro being unable to convert to COFF. The error is as follows:
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
On a side note, this happened several times in 2010, before I tried to compile it with 2012. After 2012 failed, I fell back and used 2010 again.
Re: warning when compiling dsgame server
Posted: Wed Nov 21, 2012 7:18 am
by codiddle
I'd like to provide a fix for my error, if I may.
Either disable incremental linking, by going to
Project Properties
-> Configuration Properties
-> Linker (General)
-> Enable Incremental Linking -> "No (/INCREMENTAL:NO)"
or install VS2010 SP1.
Re: warning when compiling dsgame server
Posted: Mon Nov 26, 2012 1:04 am
by codiddle
Actually, neither of those worked for me. I thought I'd add an update to help anyone with the same problem. The only way to fix compiling errors related to Visual Studio 2012 (that I've found) is to just uninstall the VS2012, then uninstall the .Net Framework 4.5. 4.5 is causing big problems for me when trying to compile the project. It just simply will not work.
Edit: I had to uninstall both VS2010, and VS2012 then .Net Framework 4.5. After all of that, I had to reinstall VS2010. It took an entire day of trial and error.