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,3e5cb326bf672965 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news.glorb.com!newsfeed101.telia.com!nf02.dk.telia.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT, shared libraries, building in different directories...madness! Date: Sun, 01 Oct 2006 16:41:41 +0100 Organization: Pushface Message-ID: References: <1159469642.836410.101620@i42g2000cwa.googlegroups.com> <87lko19qjw.fsf@ludovic-brenta.org> <1159713893.645892.314970@m7g2000cwm.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1159717301 25002 62.49.19.209 (1 Oct 2006 15:41:41 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sun, 1 Oct 2006 15:41:41 +0000 (UTC) Cancel-Lock: sha1:E8nFxiN94XpG6GV66pWZmzTDmgY= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:6822 Date: 2006-10-01T16:41:41+01:00 List-Id: "sphinxmoro" writes: > Hello, > 1) I am not quite sure of what you mean whth the flag > "-gntafno" > Can you explain the meaning of the flag (or is this a typo?) That must be -gnatfno (gnatmake -v will tell you the meanings, though I expect you knew that). > 2) When I have to use a library, ACT suggest to add a path like: > > package Linker is > for Default_Switches ("ada") use ("-g", "--largs", > "-Ld:/dev/ada/utils/lib", "-lmyutils"); > end Linker; > > This is working, and in your example you don't specify such a path. > What do you think? Not a response to your question, but: (a) I thought it was just -largs (one hyphen), (b) -largs is a flag to gnatmake, the flags in package Linker are for gnatlink, (c) it's best to give -g as a flag to package Builder (ie to gnatmake) rather than in the packages for the individual components.