I am trying to include my class header in main and my class implementation. The weird thing is main finds the header file perfectly, but with the class implementation I get “no such file or directory”. Why is this happenning? I mean what are the possible reasons one file in my project is able to find a header file perfectly, but another file in the same project can’t find the same identical header file.
I am using CodeBlocks 10.05
Thanks
Make sure your directories are configured right, and as long as the implementation is included in the project it should compile properly. Also as Fred Larson said, make sure you put “quotes” around the file, not angled brackets, otherwise it looks in the standard directories where it won’t find your file.