Header file

Hello all. I am writing a class called dateType. The class definition is stored in a separate file called dateType.h and the implementation of the class is stored in a file called dateTypeImp.cpp. In the main source file addressBook.cpp and in dateTypeImp.cpp , I #include "dateType.h", #include <iostream>, and using namespace std;. When I compile the program, it keeps saying

------ Build started: Project: AddressBook, Configuration: Debug Win32 ------
Compiling...
addressBook.cpp
c:\users\kevin\documents\visual studio 2008\projects\addressbook\addressbook.cpp(1) : fatal error C1083: Cannot open include file: 'dateType.h': No such file or directory
Build log was saved at "file://c:\Users\Kevin\Documents\Visual Studio 2008\Projects\AddressBook\AddressBook\Debug\BuildLog.htm"
AddressBook - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Any idea why this is happening?
Have you looked in the file directory? The header file ought to be in <project name>\<project name>\dataType.h under the Projects folder.
Last edited on
Ok I fixed it...the main source file was stored in a separate directory apparently so I put all the files under the same directory.
Topic archived. No new replies allowed.