Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Re: Fatal error C1083: Cannot open include file 'afxsock.h': No suchfile or directory

Reply
Thread Tools

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

 
 
jacob navia
Guest
Posts: n/a
 
      08-30-2010
Le 31/08/10 00:28, Johnson a écrit :
> 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!
>
> --- news://freenews.netfront.net/ - complaints: ---


As the compiler tells you, you do not have afxsock.h. In my installation
of visual c++ it is in

\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include

You should copy the missing files and libraries from your desktop
into your laptop.


 
Reply With Quote
 
 
 
 
Bo Persson
Guest
Posts: n/a
 
      08-31-2010
jacob navia wrote:
> Le 31/08/10 00:28, Johnson a écrit :
>> 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!
>>
>> --- news://freenews.netfront.net/ - complaints:
>> ---

>
> As the compiler tells you, you do not have afxsock.h. In my
> installation of visual c++ it is in
>
> \Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include
>
> You should copy the missing files and libraries from your desktop
> into your laptop.


Or, for the Express Edition which doesn't come with ATL or MFC,
install the Windows Platform SDK.


Bo Persson


 
Reply With Quote
 
 
 
 
jacob navia
Guest
Posts: n/a
 
      08-31-2010
Le 31/08/10 18:19, Bo Persson a écrit :
> jacob navia wrote:
>> Le 31/08/10 00:28, Johnson a écrit :
>> You should copy the missing files and libraries from your desktop
>> into your laptop.

>
> Or, for the Express Edition which doesn't come with ATL or MFC,
> install the Windows Platform SDK.
>
>
> Bo Persson
>
>


Sure, that is a far better option.

jacob
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VHDL'87: avoiding FATAL ERROR when "Failed to open VHDL file" occurs sigwalt@gmx.net VHDL 2 09-04-2007 09:06 PM
Fatal error LNK1104: cannot open file "nafxcwd.lib" Hunter C Programming 1 05-20-2007 04:22 PM
Error Installing 'termios' [ld: fatal: file crt1.o: open failed: No such file or directory] x1 Ruby 0 10-30-2005 06:50 AM
Problems with fresh install of RubyGems on Ubuntu Linux: No suchfile to load -- rubygems/builder (LoadError) Trevor Ruby 5 01-29-2005 12:52 AM
The file 'bin\WebProj.dll' cannot be copied to the run directory. The requested operation cannot be performed on a file with a user-mapped section open. J Gao ASP .Net 0 07-28-2003 04:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57