From: Simon Wright <simon@pushface.org>
Subject: Re: GPS: Including C headers from paths which are not configured in Source_Dirs
Date: Thu, 08 Oct 2015 16:29:30 +0100
Date: 2015-10-08T16:29:30+01:00 [thread overview]
Message-ID: <lyy4fdwf8l.fsf@pushface.org> (raw)
In-Reply-To: f965d1f3-21ac-4a43-bfe0-1d1795474b24@googlegroups.com
"Rego, P." <pvrego@gmail.com> writes:
> project Test is
> for Languages use ("Ada", "C");
> for Source_Dirs use (".");
> for Main use ("ohmy.adb");
> end Test;
>
> In bla.c I have an include
> #include "tools/mytool.h"
>
> But directory 'tools' is not configured in Source_Dirs, so it does not
> find mytool.h. How can I configure GPS to understand this type of
> include "tools/mytool.h" (instead of including 'tools' in Source_Dirs
> and including the file using #include "mytool.h")?
package Compiler is
for Switches ("C") use ("-I/your/include/dir");
end Compiler;
But why are you using #include "tools/mytool.h" rather than #include
<tools/mytools.h>? (I've never understood why VxWorks uses this style).
next prev parent reply other threads:[~2015-10-08 15:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-08 14:32 GPS: Including C headers from paths which are not configured in Source_Dirs Rego, P.
2015-10-08 15:29 ` Simon Wright [this message]
2015-10-08 16:51 ` Rego, P.
2015-10-08 18:11 ` Qun-Ying
2015-10-08 20:49 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox