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.136.213 with SMTP id s82mr353547ioi.103.1507256499265; Thu, 05 Oct 2017 19:21:39 -0700 (PDT) X-Received: by 10.157.11.72 with SMTP id p8mr7955otd.28.1507256499239; Thu, 05 Oct 2017 19:21:39 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!goblin1!goblin2!goblin3!goblin.stu.neva.ru!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!v62no128184itd.0!news-out.google.com!p6ni242itp.0!nntp.google.com!v62no128181itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 5 Oct 2017 19:21:38 -0700 (PDT) In-Reply-To: <761a5a41-04de-4f48-aac2-f5fe167dabd5@googlegroups.com> 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> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: The best possible way to call a function in a shared library From: John Smith Injection-Date: Fri, 06 Oct 2017 02:21:39 +0000 Content-Type: text/plain; charset="UTF-8" Xref: news.eternal-september.org comp.lang.ada:48370 Date: 2017-10-05T19:21:38-07:00 List-Id: On Thursday, October 5, 2017 at 7:55:57 PM UTC-4, John Smith wrote: > Screw it. I just made a secondary project file to wrap around the static library that I don't have the source code for... It "feels" like a dirty little solution, it works. Ok, another problem. I have this project file that is responsible to act as an in-between the *.a file for when I don't necessarily have the source code: project Static_Project is for Externally_Built use "true"; for Source_Files use (); for Library_Dir use "bin/debug"; for Library_Name use "simpleLibs"; for Library_Kind use "static"; end Static_Project; The project file that's supposed to use them is this: with "..\..\..\static_project"; project Main_Static is for Source_Dirs use ("."); for Object_Dir use "."; for Main use ("main_static.adb"); package Builder is end Builder; package Compiler is for Switches("Ada") use ("-g", "-gnatwa"); end Compiler; package Binder is end Binder; package Linker is end Linker; end Main_Static; So, I compile stuff and I get an error message saying that there are missing *.ads files... but aren't I supposed to not have them in the first place?