Sign in to follow this  

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

This topic is 2588 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

This topic is 2588 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this