I have a .lib file created with previous versions of visual studio, perhaps 2003
I link it with my code in visual studio 2010. build succeeds but I get this warning
warning LNK4098: defaultlib ‘msvcrt.lib’ conflicts with use of other libs; use /NODEFAULTLIB:library
I want my application to use VS2010 ‘msvcrt.lib’ library, which is newer than the
library embedded in .lib file.
How can I make sure that the VS2010 library is linked ?
Is there any way to force my old .lib to use new ‘msvcrt.lib’ ?
I program in Native CPP.
Your library might be using the older
9.07.0 or 7.1 runtime library, as pointed out by DeadMG. In VS2010, the 10.0 runtime is the default. You might need to recompile your library with the new runtime.Please note that the v10 runtime targets only Windows XP SP3 or higher. If you still wish to target lower operating systems, you will need to use the v90 runtime.