Re: help with include and library files in GPS



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
.



Relevant Pages

  • Re: GPS example fails to compile
    ... I know how to tell the linker to use the C .o's; ... File) but what I don't see is how to get GPS to do it for itself. ... the source directories containing both C and Ada source files. ... project file as you say, and enable "multilanguage build" in GPS options. ...
    (comp.lang.ada)
  • Re: Meet the new GPS...same as the old GPS...
    ... The gnat users guide has a good in-depth explanation, ... I have a skeleton project file with all the basic configuration I use by ... The rough rule is that every tab in the project setting of GPS corresponds ...
    (comp.lang.ada)
  • Re: Ada for 1st year students
    ... I will ditch GPS and call gnatmake upon Ada directly. ... GPS helps you in creating the project file and when you press Build, ... without changing the original units is really easy with extension ...
    (comp.lang.ada)
  • Re: Release of GNADE 1.5.2
    ... Anyway the development of tools etc for GPS ... > produce project files that are incompatible with GNAT 3.15p. ... If you import a project which defienes variables, ... project file, it seems that the type importted from the ...
    (comp.lang.ada)
  • Re: GPS and QR Code question
    ... SDK have 174 mb. ... Some go right to sites with open-source libraries for reading and writing. ... If you're specifically for a Compact Framework library for QR Codes, I think you're out of luck, but with all of the source available in Perl, C and even Java, it should be easy enough to port one. ... GPS application that comes with the Windows Mobile 5 SDK. ...
    (microsoft.public.pocketpc.developer)