Jump to content
  • Advertisement
Sign in to follow this  
JohnsonGPS

Fatal error C1083: Cannot open include file 'afxsock.h': No such file or directory

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

Hi there,

I am porting my windows project from my desktop and my laptop. At my desktop, I can compile and run my project/application without any problem, while at my laptop, I got the following compilation error:

Fatal error C1083: Cannot open include file 'afxsock.h': No such file or directory

Visual C++ 2008 Express Edition is used for both cases. The two computers have virtually the same settings:
My desktop runs Windows Vista Home Premium (2007), SP2
My laptop runs Windows Vista Ultimate (2007), SP2

Any idea for the fatal error?

Thank you!

Share this post


Link to post
Share on other sites
Advertisement
afxsock.h as in the MFC header? I always though MFC doesn't come with the Express Edition. If you downloaded the Windows SDK and built MFC yourself on one computer, make sure you do it on the other as well. Also make sure your project settings can find the MFC headers. SDK 7.1 doesn't come with the MFC headers, but I remember and older one did, so make sure your comps are using the same SDK as well.

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!