News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Problems including files

Started by Aslund, September 08, 2009, 04:21:51 PM

Previous topic - Next topic

Aslund

Hey everyone

I have a strange problem with Code::Blocks.
I have a project called PlayerStage and I need to include some header files. The header files are spread into a few folders, which I have gathered together in a single folder which I call external, the path then becomes: 
PlayerStage/external/the_different_folders_here.
Doing "Add files recursively" adds the external folder, with its subfolders and their headers files. But when I try to add a header files to my project, the compiler says it cant find the file.
The syntax is done like this:
#include <external/libplayerc++/playerc++.h>

The name is without spelling errors, so why cant the compiler add the file?
Thanks for the help.

Regards

Sebastian Aslund

stahta01

Add the Compiler search directory under the project settings or compiler settings.
If the header is a standard header included with the compiler add under compiler settings.

When in doubt add under project.

Tim S.

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Aslund