From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: adding include path in linux
Date: Sun, 17 May 2009 16:04:02 -0400
Date: 2009-05-17T16:04:02-04:00 [thread overview]
Message-ID: <nospam-20FB1D.16040117052009@news.aioe.org> (raw)
In-Reply-To: gupmvq$32o$1@news.newsland.it
In article <gupmvq$32o$1@news.newsland.it>,
maxy04polvere40yxam@yahoo.it (Massimo M.) wrote:
> good morning, and sorry for my english.
> how can i add an include path in default configuration of ada?
You did not say which Ada compiler. I use GNAT:
<http://gcc.gnu.org/onlinedocs/>
> i try to explain.
> i use linux, and i want to use ncurses includes in
> /usr/lib/ada/adainclude, in the same way the compiler gets the include in
> /usr/lib/gcc/i486-slackware-linux/4.2.4/adainclude/.
> i don't want to put every time an option in compiler, but i want the
> compiler to search the include in /usr/lib/ada/adainclude.
>
> how can i do this?
If you are using GNAT, use the -aI<dir> option. See the "GNAT User's
Guide", section 6.2, "Switches for gnatmake". For example:
gnatmake main -aI/usr/lib/ada/adainclude ...
You can use gnatls, section 17, to see the search paths:
gnatls -v
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
next prev parent reply other threads:[~2009-05-17 20:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-17 19:02 adding include path in linux Massimo M.
2009-05-17 20:04 ` John B. Matthews [this message]
2009-05-17 20:49 ` sjw
2009-05-18 8:48 ` Ludovic Brenta
2009-05-18 9:53 ` Dmitry A. Kazakov
2009-05-18 10:00 ` Ludovic Brenta
2009-05-18 10:10 ` Dmitry A. Kazakov
2009-05-18 11:01 ` Ludovic Brenta
2009-05-18 11:45 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox