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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-11.dc1.easynews.com.POSTED!not-for-mail From: agent@drrob1.com Newsgroups: comp.lang.ada Subject: Re: texttools and standard library packages Message-ID: <6b87b9ti81d9hpkbfgbmlb3ptarideualf@4ax.com> References: <83jfa95ibgj73rsr9r8d038plvrm6m4d8d@4ax.com> <1dld0z8pf8o8b.n59l143irgob.dlg@40tude.net> <7br5b952agm05lqiuc1n52ihm4ccmu72ao@4ax.com> User-Agent: ForteAgent/7.20.32.1218 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: Thu, 19 Dec 2013 20:46:39 -0500 X-Received-Bytes: 2491 Xref: number.nntp.dca.giganews.com comp.lang.ada:184302 Date: 2013-12-19T20:46:39-05:00 List-Id: On Thu, 19 Dec 2013 07:59:44 -0500, agent@drrob1.com wrote: >On Thu, 19 Dec 2013 08:57:11 +0000, Simon Wright >wrote: > >>agent@drrob1.com writes: >> >>> package Linker is >>> for Default_Switches ("Ada") >>> use ("-C", >>> "-lm", >>> "-lncurses" >>> ); >>> end Linker; >>> end Debug; >>> >>> and I did >>> gnatmake -Pdebug >>> >>> I am now getting this error: "gnatlink: failed to open binder output" >> >>Where did the -C switch come from in package Linker? >> >> $ gnatlink -C >> gnatlink: -C.ali not found >> >>(on the other hand, I just tried with one of my own GPRs and the command >>line that gnatmake successfully passed to gnatlink was >> >> gnatlink foo.ali -C -o foo >> >>The -C didn't get passed to the system linker. > >This is the full output from that attempt > >gnatbind -shared -I- -x /home/rob/Ada/tt/debug/basic.ali > >gnatlink /home/rob/Ada/tt/debug/basic.ali -shared-libgcc -g -C -lm >-lncurses -L/usr/lib/x86_64-linux-gnu/ -ltexttools -o > >/home/rob/Ada/tt/debug/test >gnatmake: *** link failed. > >gnatlink: Failed to open binder output > >I see the -C in there, but I don't know what it does I removed the -C option, and now it's complaining that it cannot find -lncurses