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

Jan 27, 2014 at 8:48am
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
Jan 27, 2014 at 10:08am
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.
Jan 27, 2014 at 10:27am
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

Jan 28, 2014 at 4:49am
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 Jan 28, 2014 at 4:56am
Topic archived. No new replies allowed.