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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:aed:3282:: with SMTP id z2mr26727672qtd.221.1573481867165; Mon, 11 Nov 2019 06:17:47 -0800 (PST) X-Received: by 2002:a05:6830:1458:: with SMTP id w24mr22296616otp.206.1573481866945; Mon, 11 Nov 2019 06:17:46 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!j16no10261335qtl.0!news-out.google.com!g53ni254qtg.0!nntp.google.com!j16no10261328qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 11 Nov 2019 06:17:46 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=146.5.2.231; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 146.5.2.231 References: <7ff91b06-4667-4fa4-8abf-6d172b033557@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <03ddacab-f539-4e78-bacb-bd10e1da1881@googlegroups.com> Subject: Re: interfacing with c object link gnatmake link problem From: Shark8 Injection-Date: Mon, 11 Nov 2019 14:17:47 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:57546 Date: 2019-11-11T06:17:46-08:00 List-Id: On Sunday, November 10, 2019 at 3:39:34 PM UTC-7, Niklas Holsti wrote: > > My habit is to add > > pragma Linker_Options ("mylibrary.o"); > > to the Ada source file that imports the C functions. Then there is no > need to add options to the gnatmake command. That is very good advice. And since it's language-defined it should be pretty portable across compilers.