473,396 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

stdafx.h

17
im writin a code for a linked list question..im getting the error " cant open include file : stdafx.h. no such file or directory"
what do i do???
Feb 26 '07 #1
3 4321
Banfa
9,065 Expert Mod 8TB
stdafx.h is a file that is create by Visual C++ for you when you create a project.

Either you have moved you code file out of it's original project directory without moving stdafx.h, or you have deleted the stdafx.h that VC++ created without removing the #include.

Since stdafx.h is a part of you project source code if you are not using it then just remove the #include.
Feb 26 '07 #2
greek
17
but when i remove the include "stdafx.h" i get 23 errors!!
Feb 26 '07 #3
Banfa
9,065 Expert Mod 8TB
That is because failing to find an include file is such a critical error that generally the compiler stops imediately and doesn't compile any more of the file thus masking any errors in it.

Anyway stdafx.h will only have had what you put into it (in might have included "windows.h").

Just fix those 23 errors.
Feb 26 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Darren | last post by:
I just want do some console C++ programs. Do I still need this wield header"stdafx.h"? Thanks
2
by: Tommy Vercetti | last post by:
All C++ files in VC++ must start with #include "stdafx.h" Did anyone ever figure out why? Other C++ compilers have precompiler mechanisms that don't need source code modifications to function....
3
by: Egbert Nierop \(MVP for IIS\) | last post by:
Thanks in advance for answering this question.
3
by: Peter Oliphant | last post by:
I know that 'stdafx.h' has to do with pre-compiled headers. However, it seem weird that it is a required 'include' in any CPP file, especially since the file itself has no code in it! I know...
7
by: silversurfer | last post by:
Hello world, I am using linux and os x and tried to compile some c++ sources (dealing with image processin). Although many people wrote that the code worked at theirs, I got the error that the...
2
by: Lloyd Dupont | last post by:
Do you have any link about StdAfx? Apparently anything which written before #include "StdAfx.h" is ignored! Why the default empty project created by the wizard put it in to the .cpp file...
16
by: Chris Shearer Cooper | last post by:
In our Visual Studio 2005 application, we have several of our application's H files that are #included into stdafx.h. What is odd, is that when we change those application H files, VS2005...
2
by: Bob Altman | last post by:
Ok, I've wondered about this for a long time: Where does the name "StdAfx" come from? TIA - Bob
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.