User forums > Using Code::Blocks

*.h No such file or directory

(1/1)

sparckis:
Hi,
     I am trying to use crystalspace that has a lot of .h header files in it.  When I copy the code for the tutorial and compile it, I get the error that it cannot find crystalspace.h  (called by #include <crystalspace.h> line in the program).  Now, I know where this file is on my computer along with the other crystal space headers.  Where/how can I tell the compiler to look for it (without making my project local to that directory)?  I have gotten a standard cpp program to work in codeblocks so the setup isn't the issue.

Thanks,
~Mark

Biplab:
Click Project > Build options menu. Then click on the combobox showing Compiler options and select Search directories option. Now in the tabs at bottom, specify the directories.

sparckis:
We must have different versions or something.  Mine does not show this.  When I do project, build options I see the attached gui.  I don't see a Compiler options under the combo box, only compiler settings.  Once I select that, i don't see anywhere to add search directories.  Any ideas?

Thanks
~Mark

[attachment deleted by admin]

sparckis:
Ah, never mind!  It is in the second combo box that says search directories.

Bye

Navigation

[0] Message Index

Go to full version