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,57d6726df7b9ad13 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news-in-01.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-06.dc1.easynews.com.POSTED!not-for-mail From: Rob Solomon Newsgroups: comp.lang.ada Subject: Re: text tools Message-ID: <7ugsd511f0fpp8q22i7rupa6htoooccfu3@4ax.com> References: <918b3ebe-ec1b-4334-ac6c-8a1fb5b9f2ee@k4g2000yqb.googlegroups.com> <44acf5f8-f3b3-49b8-bfac-3e35fad8f2b1@q14g2000vbi.googlegroups.com> <6cfcc5de-34bc-4fdb-96ad-5e68eb2d69d9@p23g2000vbl.googlegroups.com> X-Newsreader: Forte Agent 4.2/32.1118 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@easynews.com Organization: Forte Inc. http://www.forteinc.com/apn/ X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Tue, 20 Oct 2009 19:14:46 -0400 Xref: g2news2.google.com comp.lang.ada:8762 Date: 2009-10-20T19:14:46-04:00 List-Id: On Tue, 20 Oct 2009 10:49:59 -0700 (PDT), Ludovic Brenta wrote: >On Oct 20, 11:28�am, Ludovic Brenta >wrote: >> Rob Solomon wrote on comp.lang.ada: >> >> > The following basic.gpr is not working either: >> > with "texttools"; >> > project basic is >> > � �for Source_Dirs use ("."); >> > � �for Object_dir use "obj"; >> > � �for Exec_Dir use "."; >> > � �for Main use ("basic"); >> > � �package Linker is >> > � � � for Default_Switches ("Ada") use ("/usr/lib/libtexttools.a"); >> > � �end linker; >> > end basic; >> >> > I tried this without first and then with the package Linker clause. >> > Neither works. �I get very similar errors to the first time I posted, >> > w/ lots of undefined and unlinkable symbols. >> >> OK, I'll try to reproduce that and get back to you. > >On my Debian (testing) system, I do not get the same errors as you do; >this seems to be a bug introduced by Ubuntu 9.04, so the only way I >can help you here is by saying "upgrade to Debian" :/ > >However, even on Debian there is a minor bug; /usr/lib/libtexttools.so >is not linked against libgnarl.so as it should. A simple workaround >is to write the project file thus: > >with "texttools"; >project basic is > for Source_Dirs use ("."); > for Object_dir use "obj"; > for Exec_Dir use "."; > for Main use ("basic"); > package Linker is > for Default_Switches ("Ada") use ("-lgnarl"); > end linker; >end basic; > >which, on my system, results in a working executable. For reference, >here are tha packages that I used: Finally got it to work. I also found that the order of these options in the Linker clause is important. This worked: package Linker is for Default_Switches("Ada") use ("-lm","-lcurses","-lgnarl"); end linker; I almost cannot believe it worked. Now I have to try some of the other examples.