Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: cbliefhebber on July 16, 2013, 11:07:22 am
-
I have defined a system wide variable BOOST_DIR in my /.pam_environment that points to my boost directory on Ubuntu 12.04. It works fine in my shells, but does not seem to work in Code::Blocks.
I have added $(BOOST_DIR) to my search directories in project build options. It does seem to understand it to some extend as when I click edit on it, it starts off at the exact directory equal to BOOST_DIR (clicking ... to search for path). However, during compilation it complains about boost/assert.hpp No such file or directory
Anybody used system environment variables before with success? anything I am missing here?
Thanks
-
Have you tried the suggestions here: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
-
Thanks, this set me on the right path.
The problem was that code::blocks differentiates between /home/user/.. and ~/..
In code::blocks you need to have the environment variables specified as /home/user/.. if you want to use something in your home directory.