Problem with codeblocks in Ubuntu: fatal error: month.h: No such file or directory

I'm trying to learn to separate specification from implementation but this is an error I get even if I go to file >> New... >> Class... rather than making it manually. Does anyone know how to fix this?

fatal error: month.h: No such file or directory
Are you sure that "month.h" is within the working directory? What is the layout of your filesystem for your project, it might be that you need to give it #include "../month.h" or #include "inc/month.h" or something else like that.
Thanks, changing it to #include "../month.h" seems to have worked! Month.cpp was in the src folder which was in the Sources folder. In my month_class folder I had a Headers folder which contained an include folder which contained Month.h

Actually... now it isn't working when I tried doing the same thing in a new project. :( I also tried #include "../../Headers/include/Car.h" and #include "../Headers/include/Car.h"


I'm trying to build and run the one called Car Instrument
http://i42.tinypic.com/2d7egaq.png
Last edited on
Topic archived. No new replies allowed.