Re: Debian Sarge: problem with libgnat.so
- From: Martin Klaiber <martinkl@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 23 Dec 2005 01:15:38 +0100
Ludovic Brenta <ludovic@xxxxxxxxxxxxxxxxxx> wrote:
> Your Makefile is correct, except that it calls the C compiler to link
> your program. If you call gnatgcc instead, you should be fine. By
> default, gnatgcc looks in /usr/lib/gcc-lib/i486-linux/2.8.1/adalib,
> but gcc (the C compiler) only looks in /usr/lib.
Hm, gnatgcc gives the same error:
gnatgcc -Wall -o test_c test_c.c -I/usr/local/include/opensteuer -lopensteuer -lgnat
ld: cannot find -lgnat
martinkl [~/src/eigene/ada/opensteuer/libopensteuer] ls -l `locate libgnat.so`
lrwxrwxrwx 1 root root 33 2005-12-22 18:55 /usr/lib/gcc-lib/i486-linux/2.8.1/adalib/libgnat.so -> ../../../../libgnat-3.15p.so.1.12
martinkl [~/src/eigene/ada/opensteuer/libopensteuer] env | grep ADA
ADA_INCLUDE_PATH=/usr/lib/ada/adalib:/usr/lib/ada/adainclude:/usr/lib/gcc-lib/i486-linux/2.8.1/adalib:/home/martinkl/lib/ada/av/1
martinkl [~/src/eigene/ada/opensteuer/libopensteuer] cat /etc/ld.so.conf | grep /usr/lib
/usr/lib/libc5-compat
/usr/lib
/usr/lib/gcc-lib/i486-linux/2.8.1/adalib
Is there anything else I need to configure?
> Adding another symlink in /usr/lib is also an option.
I want to keep it portable with other Linux-distros (if possible) as
the code is public. Would it be better to use gnatgcc oder gcc then?
thx, Martin
.
- Follow-Ups:
- Re: Debian Sarge: problem with libgnat.so
- From: Ludovic Brenta
- Re: Debian Sarge: problem with libgnat.so
- References:
- Debian Sarge: problem with libgnat.so
- From: Martin Klaiber
- Re: Debian Sarge: problem with libgnat.so
- From: Ludovic Brenta
- Debian Sarge: problem with libgnat.so
- Prev by Date: Re: SBIRS, Ada and Ignorance
- Next by Date: Re: SBIRS, Ada and Ignorance
- Previous by thread: Re: Debian Sarge: problem with libgnat.so
- Next by thread: Re: Debian Sarge: problem with libgnat.so
- Index(es):
Relevant Pages
|