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: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 03 Oct 2017 09:22:06 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: The best possible way to call a function in a shared library Date: Tue, 03 Oct 2017 10:22:08 -0400 Organization: IISS Elusive Unicorn Message-ID: <2277tcd5ej5ebap09vvq1oal6bg64idr58@4ax.com> References: <9885a3fd-8ffa-4076-ba1f-db2f8035e0dc@googlegroups.com> <977c48e8-6b5b-4b0e-84a9-cd6447a9ddc3@googlegroups.com> <15345d32-0610-444e-b611-f480bf60f9f0@googlegroups.com> <93483ae9-c1ec-4cbe-92f9-49eaf41bc1f3@googlegroups.com> <5984e47c-cfe5-4d22-9907-f113f24647b9@googlegroups.com> User-Agent: ForteAgent/8.00.32.1272 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 108.73.116.208 X-Trace: sv3-aWEfFjT0tz1q2k6HAS2xBKmFoMNmPcY7bhCIpA11qX2yoeoXtumWJjgRG1tp5NQXi3XdT2bl4nJeLr3!B66wv1izSnfSo0bwfJTOrdDrSa0K8PpiDbseLe1EZxHkXjdUepHS0R6n/BIdjP40fUA5Ttr/y0Mq!VBt/KslVMGB3LDSKEhLQ5GSo7CeL 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.40 X-Original-Bytes: 2360 Xref: news.eternal-september.org comp.lang.ada:48320 Date: 2017-10-03T10:22:08-04:00 List-Id: On Tue, 3 Oct 2017 04:32:20 -0700 (PDT), John Smith declaimed the following: > >Ok, I feel kind of stupid. I've tried to include the source like so, but keep getting the above error that I posted earlier: > >gnatmake main_static.adb -largs -aI../../../src -L../../../bin/debug -lsimpleLibs > https://gcc.gnu.org/onlinedocs/gnat_ugn/Mode-Switches-for-gnatmake.html """ The effect of a mode switch is to cause all subsequent switches up to the end of the switch list, or up to the next mode switch, to be interpreted as switches to be passed on to the designated component of GNAT. """ The .ads files are needed by the compiler stage (and maybe the binder?), not the linker, so their location needs to be specified before the use of "-largs". -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/