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: a07f3367d7,29a007c84cce183d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.189.209 with SMTP id gk17mr15246wic.7.1363918479172; Thu, 21 Mar 2013 19:14:39 -0700 (PDT) Path: p18ni6019wiv.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.139.MISMATCH!xlned.com!feeder7.xlned.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: There is something wrong with using libpq5 with -FdUMP-ada-spec-C ? Date: Sat, 16 Mar 2013 09:13:50 +0000 Organization: A noiseless patient Spider Message-ID: References: <0e77c6ac-c333-45b9-b147-76b1288255d4@googlegroups.com> <1528540b-8b97-4509-a4d2-42245ab65963@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx05.eternal-september.org; posting-host="72a7bb6120f61bc7749e29c9c2e535af"; logging-data="10766"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vcBXbiPrb/3cW2m2fbuARkzwvg4bWnPE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) Cancel-Lock: sha1:XVWWHbN8QLehBFd5YI1LsYGTIng= sha1:DZEdtSF6N3RftAKZY/GKgM6/R2s= Content-Type: text/plain Date: 2013-03-16T09:13:50+00:00 List-Id: Multiplayer1080 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