From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_05 autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:ad4:5106:: with SMTP id g6mr3027160qvp.1.1606397275383; Thu, 26 Nov 2020 05:27:55 -0800 (PST) X-Received: by 2002:a37:aa54:: with SMTP id t81mr3142094qke.468.1606397275224; Thu, 26 Nov 2020 05:27:55 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.mixmin.net!sewer!alphared!news.uzoreto.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 26 Nov 2020 05:27:54 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:944c:6700:e12d:6fd5:34d3:13dc; posting-account=cWMYQAoAAADC6Q2Ml1nyYgTWH7MBkx9I NNTP-Posting-Host: 2607:f2c0:944c:6700:e12d:6fd5:34d3:13dc References: <9fb9610e-0b54-4645-ab4e-b4b3bf554674n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Having trouble with gnatlink From: Pat Van Canada Injection-Date: Thu, 26 Nov 2020 13:27:55 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:60621 List-Id: Thanks very much Simon I have it working now. Here is the build.sh. I am sorry I deleted the gnatbind part the last time when I tried to delete the unneeded echo calls.: rm *.ali *.o echo "---------------->compiling c code" gcc-9 -c call_printf_src.c echo "---------------->compiling main ada code" gcc-9 -c pointer_test.adb c.ads echo "---------------->binding ada code" gnatbind -x pointer_test.ali echo "---------------->linking ada and c" gnatlink -o pointer_test /usr/local/lib/libjim.so.0.77 \ pointer_test.ali call_printf_src.o I don't have -L/usr/local/lib -ljim working as it should but I can figure that out later. Thanks again-Patrick