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: 103376,a5f87a50bf9eecc7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail NNTP-Posting-Date: Thu, 23 Feb 2006 15:51:21 -0600 From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: help with include and library files in GPS References: <1140710414.054668.201470@z34g2000cwc.googlegroups.com> <1392397.TMLNCp2Aq0@linux1.krischik.com> <1140730318.270710.16040@i39g2000cwa.googlegroups.com> Date: Thu, 23 Feb 2006 22:49:18 +0100 Message-ID: <87zmkhn3tt.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:aR71ksimTNyOYumG2nnEvRcOPQE= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 83.134.241.26 X-Trace: sv3-5MAyynRX3Ps2xpBCB90gTBhAoFvQyG/g38BEzSZVo0ZmhcMgF6HUcVAwfSHL/3Bdan3hWur1z7ma8qE!vvAP7st4pINAUSu4MxZeen2ArfPin8cVZX1q643Awm4JQR2rRsjA4fgjzkZYm4JGXQEJMCYcFg== X-Complaints-To: abuse@scarlet.be X-DMCA-Complaints-To: abuse@scarlet.biz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:3116 Date: 2006-02-23T22:49:18+01:00 List-Id: "new" writes: > Well thanks, but I am still in confusion. I seem to have figured out > that when I with something in my .gpr it will include that project > and that is what I have to do to include a library. The problem is > with I screw this up, it keeps recompiling the library. Make sure that the .ali files for GtkAda are read-only (mode 0444, not 0644) and are present in the object directory of gtkada.gpr. Remove the object files (*.o) from that directory. Place libgtkada.a in /usr/lib. > All I am trying to do is use Gtkada with gps. I have succeeded in > installing and compiling Gtkada. I can link with gnatmake on the > command line, but I want to do so in GPS. I put the directory > containing gtkada.gpr in the ADA_PROJECT_PATH. It still says in cannot > find the library even though libgtkada.a seems to be where it is > supposed to be. In your project file, reference the exact location of libgtkada.a, like so: with "/usr/share/ada/adainclude/gtkada.gpr"; project Blah is ... package Linker is for Default_Switches ("Ada") use ("/usr/lib/libgtkada.a"); end Linker; end Blah; > I have put the libgtkada.a everywhere I could thing of but GPS still > says: > gnatmake: no object files for library "gtkada" > > Any suggestions? > > Another thing is suppose there is a static and dynamic version of the > library. How do I specify which one I want to use? Sometimes GPS says > there is no .dll when I would prefer to use the static library. with "/usr/share/ada/adainclude/gtkada.gpr"; project Blah is ... type Link_Type is ("Static", "Shared"); Link : Link_Type := External ("Link_Type", "Static"); package Linker is case Link is when "Static" => for Default_Switches ("Ada") use ("/usr/lib/libgtkada.a"); when "Shared" => for Default_Switches ("Ada") use ("-lgtkada"); end case; end Linker; end Blah; For full details, see http://www.ada-france.org/debian/debian-ada-policy.html HTH -- Ludovic Brenta.