comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: help with include and library files in GPS
Date: Thu, 23 Feb 2006 19:41:53 +0100
Date: 2006-02-23T19:41:53+01:00	[thread overview]
Message-ID: <1392397.TMLNCp2Aq0@linux1.krischik.com> (raw)
In-Reply-To: 1140710414.054668.201470@z34g2000cwc.googlegroups.com

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



  reply	other threads:[~2006-02-23 18:41 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-23 16:00 help with include and library files in GPS new
2006-02-23 18:41 ` Martin Krischik [this message]
2006-02-23 21:31   ` new
2006-02-23 21:49     ` Ludovic Brenta
2006-02-24 15:39       ` Simon Wright
2006-02-24 16:18         ` Ludovic Brenta
2006-02-24 10:33     ` Stephen Leake
2006-02-24 18:51     ` Martin Krischik
2006-02-24 20:42       ` new
2006-02-25 14:38   ` OT: " Steve
2006-02-26  9:35     ` Martin Krischik
2006-02-26 13:15       ` Larry Kilgallen
2006-02-27  2:13       ` Steve
2006-02-27  4:04         ` Jeffrey R. Carter
2006-02-27 14:22           ` Larry Kilgallen
2006-02-27 16:25             ` Larry Kilgallen
2006-02-27 16:58             ` Martin Krischik
2006-02-27 18:35             ` Jeffrey R. Carter
2006-02-27 16:48         ` Martin Krischik
2006-02-23 20:33 ` Simon Wright
replies disabled

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