Sign in to follow this  
rossmills

Header file - what am I missing?

Recommended Posts

Try #include "telephone.h" instead of <telephone.h>

This is assuming that your header file is inside of your projects' working directory, which I am assuming it is.

*edit: Looking at the image, you may have to do the same with your other lines that include call.h and PhoneSystem.h.

In #include, using braces (< and >) tells the preprocessor to look in the default directories. Using quotes ("") lets the preprocessor know the file is inside of the current directory.

Also, on an unrelated note, you should be using #include <cmath> instead of your current math.h library in C++.

Share this post


Link to post
Share on other sites

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