Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys

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 embeded in .lib file.

How can I make sure that the VS2010 library is linked ?
Is ther any way to force my old .lib to use new 'msvcrt.lib' ?

I program inNative CPP.

Thanks in forward
mr.abzadeh
Posted
Comments
Malli_S 9-Sep-11 2:25am    
Did you build the previous lib by linking statically or dynamically?
mr.abzadeh 10-Sep-11 4:00am    
I linked statically to make an exe.
mr.abzadeh 11-Sep-11 0:31am    
The previous lib has come to me from SafeNet company and
I do not know wether it has been linked statically or dynamically.
How can I know That?
Malli_S 13-Sep-11 4:20am    
They might have provided you the header files as well....

1 solution

if its conflicting go to

Configuration Property->linker-> input (Ignore Specific Default library) and put MSVCRT.lib
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900