News:

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

Main Menu

include path

Started by er, April 23, 2008, 03:22:32 AM

Previous topic - Next topic

er

hi all,

i have project as follows:

//main.cpp
#include "my_header.h"

in Build option's search path, i add say  /.../root_project/sub/

how can i set things up such that i can have:

//main.cpp
#include "root_project/sub/my_header.h"

tried adding /.../root_project as search path in build options and clicking yes for "keep as relative path" but that doesn't seem to be it (what is it for?)

any suggestion?


Code::Blocks 10.05/ Mac OS X 10.6.4/GCC

Seronis

#include "root_project/sub/my_header.h"
if you want  'root_project' in the include statement then having
.../root_project/
wont work cause you dont have a 'root_project' inside of the root_project you are searching.  instead you probably just want
.../
in your search paths so your include statement can look as you desire.

HTH

er

yes, that makes sense...thanks!
Code::Blocks 10.05/ Mac OS X 10.6.4/GCC