Author Topic: Open #include file - base dir is project dir, not file dir  (Read 5363 times)

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
Open #include file - base dir is project dir, not file dir
« 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Open #include file - base dir is project dir, not file dir
« Reply #1 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.
« Last Edit: June 12, 2011, 04:27:08 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org