User forums > General (but related to Code::Blocks)

Problems including files

(1/1)

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.

Aslund:
Thanks Tim, it worked.

Navigation

[0] Message Index

Go to full version