Sign in to follow this  

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

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

This topic is 2663 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.

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