From: Pat Van Canada <google@spellingbeewinnars.org>
Subject: Re: Having trouble with gnatlink
Date: Thu, 26 Nov 2020 05:27:54 -0800 (PST) [thread overview]
Message-ID: <b1cbd8a4-bb21-454b-8de0-038d17f3516cn@googlegroups.com> (raw)
In-Reply-To: <lyk0u8y19a.fsf@pushface.org>
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
prev parent reply other threads:[~2020-11-26 13:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-25 23:47 Having trouble with gnatlink Pat Van Canada
2020-11-26 8:24 ` Simon Wright
2020-11-26 13:27 ` Pat Van Canada [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox