Jump to content
  • Advertisement
Sign in to follow this  
rossmills

Header file - what am I missing?

This topic is 3710 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Image: Apparently "telephone.h" does not exist. But it does! I checked the folder and the file. What else do I need to include? Am I being dumb?

Share this post


Link to post
Share on other sites
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!