comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: There is something wrong with using libpq5 with -FdUMP-ada-spec-C ?
Date: Sat, 16 Mar 2013 09:13:50 +0000
Date: 2013-03-16T09:13:50+00:00	[thread overview]
Message-ID: <ly7gl7n1v5.fsf@pushface.org> (raw)
In-Reply-To: 1528540b-8b97-4509-a4d2-42245ab65963@googlegroups.com

Multiplayer1080 <marlontrujillo1080@gmail.com> writes:

> however, i dont think that this is the best method to use a library
> that is in debian repository and i installed. i mean, why i have to
> extract the apq directory (the .ads and .adb) and rebuild it instead
> use a "with and use" directly?
> (i guess that my novice mind dont let me use the debian advantages)

You need to be using the GNAT Project facility.

I wrote a little bit about it at [1] (there must be a beginner-oriented
tutorial somewhere?)

The installed APQ library contains an "apq.gpr", in the place where GNAT
expects to find it, which tells GNAT how to compile against and link
with the software.

Write your own .gpr and include the line
   with "apq";
at the beginning.

[1] http://stackoverflow.com/questions/12582796/get-ada-compiled-with-gnat-to-import-files-from-outside-current-directory/12587981#12587981



  reply	other threads:[~2013-03-16  9:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-14 18:58 There is something wrong with using libpq5 with -FdUMP-ada-spec-C ? Multiplayer1080
2013-03-14 22:21 ` Dirk Heinrichs
2013-03-15 19:05   ` Multiplayer1080
2013-03-15 19:19   ` Multiplayer1080
2013-03-16  2:50     ` Multiplayer1080
2013-03-16  9:13       ` Simon Wright [this message]
2013-03-16 21:40         ` Multiplayer1080
2013-03-15  9:02 ` Dmitry A. Kazakov
replies disabled

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