Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: sparckis on March 24, 2007, 04:49:17 am

Title: *.h No such file or directory
Post by: sparckis on March 24, 2007, 04:49:17 am
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
Title: Re: *.h No such file or directory
Post by: Biplab on March 24, 2007, 10:12:38 am
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.
Title: Re: *.h No such file or directory
Post by: sparckis on March 24, 2007, 04:10:53 pm
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]
Title: Re: *.h No such file or directory
Post by: sparckis on March 24, 2007, 04:15:20 pm
Ah, never mind!  It is in the second combo box that says search directories.

Bye