warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs;

Hi,

I have only recently started using vs2010 over C::B but I keep running into this error for every example project:

2>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib ‘msvcrt.lib’ conflicts with use of other libs; use /NODEFAULTLIB:library
2>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

I can solve it by going to Project properties -> Linker -> General and setting “Enable Incremental Linking” to "No (/INCREMENTAL:NO)

but I’m wondering why I get this in the first place?. Its a fresh install of VS2010.

TIA

Thanks, I had exactly the same problem and this seems to have fixed it.

To be honest, this is the kind of arcane VS message that I loathe, and why I try and avoid using this IDE whenever possible, even though it’s great in other ways…