Jump to content
  • Advertisement
Sign in to follow this  
Structural

MS Visual C++, linking to MFC appications

This topic is 3764 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
Make sure your apps and your libs are all linking to the DLL version of the C-Runtime.

Share this post


Link to post
Share on other sites
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!