warning when compiling dsgame server

Post Reply
giuseppo
Posts: 3
Joined: Sat Nov 17, 2012 5:35 pm

warning when compiling dsgame server

Post by giuseppo » Tue Nov 20, 2012 5:12 pm

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?

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: warning when compiling dsgame server

Post by whasf » Tue Nov 20, 2012 8:18 pm

Nah, just a warning
-- Whasf

codiddle
Posts: 56
Joined: Sat Aug 11, 2012 12:58 pm

Re: warning when compiling dsgame server

Post by codiddle » Wed Nov 21, 2012 7:06 am

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.

codiddle
Posts: 56
Joined: Sat Aug 11, 2012 12:58 pm

Re: warning when compiling dsgame server

Post by codiddle » Wed Nov 21, 2012 7:18 am

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.

codiddle
Posts: 56
Joined: Sat Aug 11, 2012 12:58 pm

Re: warning when compiling dsgame server

Post by codiddle » Mon Nov 26, 2012 1:04 am

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.

Post Reply