• Advertisement
Sign in to follow this  

MS Visual C++, linking to MFC appications

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

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
Advertisement
Sign in to follow this  

  • Advertisement