Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Borneq on June 12, 2011, 04:18:28 pm

Title: Open #include file - base dir is project dir, not file dir
Post by: Borneq on June 12, 2011, 04:18:28 pm
I have file p7zip\CPP\Common\StdInStream.cpp
here is #include "../myWindows/myPrivate.h"
and myPrivate.h is p7zip\CPP\myWindows\myPrivate.h
relative, one up, go to myWindows directory
But if I try by right click mouse on "../myWindows/myPrivate.h" open it, I can't
I can, if would be "../../myWindows/myPrivate.h"
This command search headers from project(?) directory, not from file directory as do compiler
Title: Re: Open #include file - base dir is project dir, not file dir
Post by: stahta01 on June 12, 2011, 04:23:47 pm
IIRC, There is an project option/property to do as you want.
It is an Compiler Option that allows it under "Other Settings" Tab.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F


Did you read the Manual?
I have not myself; but, I have looked at all the CB project option and properties screens.

Tim S.