Sign in to follow this  

MS Visual C++, linking to MFC appications

Recommended Posts

I keep running into linking problems when I link my static libs to MFC applications. It keeps complaining about std::basic_string and other std stuff already being defined in my static lib. There is obviously something that I don't quite understand about this whole linking process. Right now I have an utility lib that I want to link in an MFC application. I turned on /NODEFAULTLIB for the utility lib so no standard libs are linked there (at least that is what I believe it should do). So I would expect that symbols, such as std::basic_string are NOT in the static lib and are resolved when linking the overall application, and that the MFC variant of std::basic_string would be used. Why is std::basic_string (and others) defined in my utility.lib? Where does it come from?

Share this post

Link to post
Share on other sites

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