Jump to content
  • Advertisement
Sign in to follow this  
impulsionaudio

LNK4221 on PCH

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

When using precompiled headers in VS, I sometimes get a LNK4221 warning for the stdafx object file. Once I start getting it I continue to get it until one day, I do (or VS does) something that makes the warning go away. Any idea what causes this? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Yourself
http://msdn.microsoft.com/en-us/library/604bzebd(VS.80).aspx


Thanks but I know what the warning is for. What I want to know is why it sometimes occurs for a stdafx.obj file. stdafx.cpp is usually an empty file anyway, apart from including stdafx.h. So why does the warning sometimes show up when the translation unit has not changed?

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!