From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GPS: Including C headers from paths which are not configured in Source_Dirs Date: Thu, 08 Oct 2015 16:29:30 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="82b7f55adeea1ed21a93abb5e24a046f"; logging-data="17189"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VxXFnTZvsZ2LkaAHFwc4gyOxyX5BZnK4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:oci1efM5+z7X0fUrA8N3xZjRNzc= sha1:AKnMvfMto7VoGFWxSTWEgKVEe3w= Xref: news.eternal-september.org comp.lang.ada:27939 Date: 2015-10-08T16:29:30+01:00 List-Id: "Rego, P." 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 ? (I've never understood why VxWorks uses this style).