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: 103376,a5f87a50bf9eecc7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news4.google.com!news2.volia.net!newsfeed.utanet.at!newsfeed.inode.at!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: help with include and library files in GPS Date: Thu, 23 Feb 2006 19:41:53 +0100 Organization: Cablecom Newsserver Message-ID: <1392397.TMLNCp2Aq0@linux1.krischik.com> References: <1140710414.054668.201470@z34g2000cwc.googlegroups.com> NNTP-Posting-Host: 84-74-134-212.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1140722134 5370 84.74.134.212 (23 Feb 2006 19:15:34 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Thu, 23 Feb 2006 19:15:34 +0000 (UTC) User-Agent: KNode/0.10.1 Xref: g2news1.google.com comp.lang.ada:3110 Date: 2006-02-23T19:41:53+01:00 List-Id: new wrote: > I have been using GPS for a while and have not been able to figure out > how to include libraries and include files in GPS. ??? Include ??? We don't include in Ada. we use with and > I have programmed in C for a while and am fimiliar with how it is done > there. There is alway a way to specify search directories for .h files > and compiled library files. I see that there is a way to do this with > gnatmake, but am having trouble finding how to do it from inside GPS. GPS usually uses project files. A project file can with another - library - project file. The library compiled with that project file becomes then available to the program. Have a look at how that works: http://cvs.sourceforge.net/viewcvs.py/adacl/adacl/Scripts/adacl.gpr?view=markup http://cvs.sourceforge.net/viewcvs.py/adacl/adacl/Scripts/Attic/adacl-tests.gpr?rev=1.1.2.2&only_with_tag=Ada_2005&view=markup You can also add the good old "-I" option - just like in C - to the compiler options specified inside the project file. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com