Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I am having one error come up in my program. When I build my solution to my prog

ID: 3621868 • Letter: I

Question

I am having one error come up in my program. When I build my solution to my program, it says that there is a fatal error in the build and it cannot find the header file I have listed although it is complete.
Here is the beginning of the cpp file:
//CircleType.cpp

#include <iostream>
#include "stdafx.h"
#include "PointType.h"
#include "CircleType.h"

and here is the error message:
------ Rebuild All started: Project: CircleType, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'CircleType', configuration 'Debug|Win32'
Compiling...
CircleType.cpp
visual studio 2008projectscircletypecircletypecircletype.cpp(11) : fatal error C1083: Cannot open include file: 'PointType.h': No such file or directory
stdafx.cpp
Generating Code...
Build log was saved at "Visual Studio 2008ProjectsCircleTypeCircleTypeDebugBuildLog.htm"
CircleType - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

If i take out the PointType.h in the header area, it will give an error message saying it cannot open include file : "CircleType.h" so I am not sure what I am doing wrong. Here are the headers of both the CircleType.h:
//Header file
//Header file name CircleType.h


#include "PointType.h"
#include <iostream>
#include "stdafx.h"

using namespace std;

And for the PointType.h:
//Header file
//Header file name PointType.h

#include "stadfx.h"
#include <iostream>

using namespace std;

Explanation / Answer

are they saved in the same directory? That could easily cause your problem if they are in 2 different locations.