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 10.107.38.145 with SMTP id m139mr2143587iom.28.1507344421073; Fri, 06 Oct 2017 19:47:01 -0700 (PDT) X-Received: by 10.157.1.201 with SMTP id e67mr48353ote.23.1507344420986; Fri, 06 Oct 2017 19:47:00 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!paganini.bofh.team!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!k70no155431itk.0!news-out.google.com!p6ni1347itp.0!nntp.google.com!l196no154937itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 6 Oct 2017 19:47:00 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:18f:900:f900:453d:87a5:de7c:1786; posting-account=AvekzAoAAABj-TclKcOWQmXwA49MFPGX NNTP-Posting-Host: 2601:18f:900:f900:453d:87a5:de7c:1786 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> <2bc424a1-3559-42bb-9f40-22763c21e7f2@googlegroups.com> <761a5a41-04de-4f48-aac2-f5fe167dabd5@googlegroups.com> <41f9bb00-4fa3-472e-98e4-d32e5ae4e2d6@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4a0247bf-cf7e-4088-b97c-88244d094739@googlegroups.com> Subject: Re: The best possible way to call a function in a shared library From: John Smith Injection-Date: Sat, 07 Oct 2017 02:47:01 +0000 Content-Type: text/plain; charset="UTF-8" Xref: news.eternal-september.org comp.lang.ada:48380 Date: 2017-10-06T19:47:00-07:00 List-Id: On Friday, October 6, 2017 at 9:26:39 AM UTC-4, Dmitry A. Kazakov wrote: > On 2017-10-06 13:30, John Smith wrote: > > > Good point. I did reference it now in the static_project.gpr. Now > > it's complaining about not knowing which language it's dealing with. > > Check GNAT installation, gprconfig must list Ada compiler. > > Library project should at least have: > > library project ... is > for Source_Dirs use (...); > for Library_Kind use ...; > for Library_Name use ...; > for Library_Dir use ...; > for Library_ALI_Dir use ...; > for Externally_Built use "true"; > end ...; > > -- > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de It does: > gprconfig -------------------------------------------------- gprconfig has found the following compilers on your PATH. Only those matching the target and the selected compilers are displayed. 1. GNAT for Ada in c:\gnat\2016\bin\ version 2016 (default runtime) 2. GNAT for Ada in c:\gnat\2016\bin\ version 2016 (sjlj runtime) 3. GNAT for Ada in c:\gnat\2015\bin\ version 2015 (default runtime) 4. GNAT for Ada in c:\gnat\2015\bin\ version 2015 (sjlj runtime) 5. GCC-ASM for Asm in c:\gnat\2016\bin\ version 4.9.4 6. GCC-ASM for Asm in c:\gnat\2016\bin\ version 4.9.4 7. GCC-ASM for Asm in c:\gnat\2015\bin\ version 4.9.3 8. GCC-ASM for Asm in c:\gnat\2015\bin\ version 4.9.3 9. GCC-ASM for Asm2 in c:\gnat\2016\bin\ version 4.9.4 10. GCC-ASM for Asm2 in c:\gnat\2016\bin\ version 4.9.4 11. GCC-ASM for Asm2 in c:\gnat\2015\bin\ version 4.9.3 12. GCC-ASM for Asm2 in c:\gnat\2015\bin\ version 4.9.3 13. GCC-ASM for Asm_Cpp in c:\gnat\2016\bin\ version 4.9.4 14. GCC-ASM for Asm_Cpp in c:\gnat\2016\bin\ version 4.9.4 15. GCC-ASM for Asm_Cpp in c:\gnat\2015\bin\ version 4.9.3 16. GCC-ASM for Asm_Cpp in c:\gnat\2015\bin\ version 4.9.3 17. GCC for C in c:\gnat\2016\bin\ version 4.9.4 18. GCC for C in c:\gnat\2016\bin\ version 4.9.4 19. GCC for C in c:\gnat\2015\bin\ version 4.9.3 20. GCC for C in c:\gnat\2015\bin\ version 4.9.3 21. G++ for C++ in c:\gnat\2016\bin\ version 4.9.4 22. G++ for C++ in c:\gnat\2015\bin\ version 4.9.3 23. WINDRES for WinRes in c:\gnat\2016\bin\ version 2.24.51.20140908 24. WINDRES for WinRes in c:\gnat\2015\bin\ version 2.24.51.20140908