Jump to content
  • Advertisement
Sign in to follow this  
wizard_one

warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs

This topic is 2807 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello All,

I am doing a program on VC8 with .NET 3.5 frame work. I generated my program using MFC.

My program using a two third party libraries. One library is build as statical library. It is giving a statical lib.
Another library is giving a DLL.

Statical library compiler settings are :

1) Configuration Properties->General->ConfigurationType is STATIC LIBRARY(.LIB)
2) C/C++ -> Code Generation -> Basic Runtime Checks as Both (/RTC1, equiv. to /RTCsu)
3) C/C++ -> Code Generation -> Runtime Library as Multi-threaded Debug DLL (/MDd)

2nd Third Party Library (Giving DLL finally)

1) Configuration Properties->General->ConfigurationType as Dynamic Library (.dll)
2) C/C++ -> Code Generation -> Basic Runtime Checks as Both (/RTC1, equiv. to /RTCsu)
3) C/C++ -> Code Generation -> Runtime Library as Multi-threaded Debug DLL (/MDd)

My program also having the same settings. And I also set manifest file generation to YES.

I am using these two libraries in my program. My program is compilied with out any errors. But when i execute my program it is giving runtime error "Error R6034 Unable to load C library". When I rebuild my solution it gives the worning "warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs"

Can you please help me how to resolve this error.

Thanks in advance
Wizards

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!