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.59.85 with SMTP id i82mr11781744ioa.35.1507030340448; Tue, 03 Oct 2017 04:32:20 -0700 (PDT) X-Received: by 10.157.15.100 with SMTP id 91mr235271ott.4.1507030340387; Tue, 03 Oct 2017 04:32:20 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!border2.nntp.ams1.giganews.com!nntp.giganews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!v62no3389979itd.0!news-out.google.com!p6ni4376itp.0!nntp.google.com!v62no3389978itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 3 Oct 2017 04:32:20 -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> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5984e47c-cfe5-4d22-9907-f113f24647b9@googlegroups.com> Subject: Re: The best possible way to call a function in a shared library From: John Smith Injection-Date: Tue, 03 Oct 2017 11:32:20 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 1537905515 X-Received-Bytes: 3548 Xref: news.eternal-september.org comp.lang.ada:48313 Date: 2017-10-03T04:32:20-07:00 List-Id: On Tuesday, October 3, 2017 at 3:14:25 AM UTC-4, Dmitry A. Kazakov wrote: > On 2017-10-03 00:44, John Smith wrote: > > Hi Dmitry, > > > > This is what I'm getting: > > > >> gnatmake main_static.adb -largs -L../../../bin/debug -lsimpleLibs > > gnatmake : gcc -c -I.\ -I- .\main_static.adb > > At line:1 char:1 > > + gnatmake .\main_static.adb -largs -L../../../bin/debug -lsimpleLibs > > + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > + CategoryInfo : NotSpecified: (gcc -c -I.\ -I- .\main_static.adb:String) [], RemoteException > > + FullyQualifiedErrorId : NativeCommandError > > > > main_static.adb:9:06: file "geometry_shapes.ads" not found > > main_static.adb:10:06: file "calc_time.ads" not found > > gnatmake: ".\main_static.adb" compilation error > > That is not link error. You have the problem that some Ada source files > *.ads are not reachable [which is the reason why project files are used]. > > The gnatmake switch -I is to specify a directory to look for > additional Ada sources. > > -- > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de 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 The result: gnatmake : gcc -c main_static.adb At line:1 char:1 + gnatmake main_static.adb -largs -aI../../../src -L../../../bin/debug ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (gcc -c main_static.adb:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError main_static.adb:9:06: file "geometry_shapes.ads" not found main_static.adb:10:06: file "calc_time.ads" not found gnatmake: "main_static.adb" compilation error No clue what the problem is now. I've included the source where the *.ads file are located.