Makhno
2007-07-16 21:36:38 UTC
Hello there,
I've been trying all afternoon to build and link to a shared library out
of some ADA code. The ADA builds fine, and I *think* it's building into
a shared library with the following commands:
gnatmake -fPIC myadacode
gcc -shared -o libmyadacode.so *.o -lc
I then take the built binary, libmyadacode.so and try to link it into an
application, like so
gcc -o MyApp -lm -L. -lmyadacode $(FILES)
It looks like it's linking to the exported Ada symbols from
libmycode.so, but I keep getting a load of other linker errors, for example:
./libmyadacode.so: undefined reference to
`system__soft_links__set_jmpbuf_address_soft'
some of these look like Ada library stuff, so it looks like I'm not
linking in some important Ada library.
There seems to be no documentation online about how to build Ada shared
libs, only Win32 DLLs.
Has anyone any suggestions? Thanks
I've been trying all afternoon to build and link to a shared library out
of some ADA code. The ADA builds fine, and I *think* it's building into
a shared library with the following commands:
gnatmake -fPIC myadacode
gcc -shared -o libmyadacode.so *.o -lc
I then take the built binary, libmyadacode.so and try to link it into an
application, like so
gcc -o MyApp -lm -L. -lmyadacode $(FILES)
It looks like it's linking to the exported Ada symbols from
libmycode.so, but I keep getting a load of other linker errors, for example:
./libmyadacode.so: undefined reference to
`system__soft_links__set_jmpbuf_address_soft'
some of these look like Ada library stuff, so it looks like I'm not
linking in some important Ada library.
There seems to be no documentation online about how to build Ada shared
libs, only Win32 DLLs.
Has anyone any suggestions? Thanks