comp.lang.ada
 help / color / mirror / Atom feed
* GPS: Including C headers from paths which are not configured in Source_Dirs
@ 2015-10-08 14:32 Rego, P.
  2015-10-08 15:29 ` Simon Wright
  0 siblings, 1 reply; 5+ messages in thread
From: Rego, P. @ 2015-10-08 14:32 UTC (permalink / raw)


In a project I have Ada and C files, for example, ohmy.adb, and bla.c and bla.h, and some other files which are not listed in this Ada main project. For simplicity,

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")?

Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-08 20:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2015-10-08 16:51   ` Rego, P.
2015-10-08 18:11     ` Qun-Ying
2015-10-08 20:49     ` Simon Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox