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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,28035108fa5d8b72 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!de-l.enfer-du-nord.net!gegeweb.org!aioe.org!nospam From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: adding include path in linux Date: Sun, 17 May 2009 16:04:02 -0400 Organization: The Wasteland Message-ID: References: NNTP-Posting-Host: ib4TTflHUauJidfWP/+Rjw.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.7.9 Cancel-Lock: sha1:fJUfo8Wg6z1aNvTdbcqSGmzISj0= User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: g2news2.google.com comp.lang.ada:5880 Date: 2009-05-17T16:04:02-04:00 List-Id: In article , 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: > 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 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