Re: help with include and library files in GPS
- From: Martin Krischik <krischik@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 23 Feb 2006 19:41:53 +0100
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@xxxxxxxxxxxxxxxxxxxxx
Ada programming at: http://ada.krischik.com
.
- Follow-Ups:
- References:
- Prev by Date: help with include and library files in GPS
- Next by Date: Re: Avoiding warnings
- Previous by thread: help with include and library files in GPS
- Next by thread: Re: help with include and library files in GPS
- Index(es):
Relevant Pages
|
|