I have the following project layout in Code::Blocks 13.12. I'm running as root.
Notice the file dtconfig.h is in the Headers folder.
The file is located in the same directory as the main.cpp file:
However, when I go to build I get the following error:
When I wrap the include in quotes, such as:
You're not meant to use angle brackets (
<dtconfig.h>) for your own project's code, but if you need to make them work without changing every file, then you can pass an option to the compiler telling it to use your
dtSearch directory as an include directory.
I don't know whether C::B supports include directories in the GUI, but you can always fall back to passing
-Ipath/to/dtSearch to GCC and Clang directly, or
/I for MSVC. You can do this where C::B lets you specify additional command line options for the compiler.