comp.lang.ada
 help / color / mirror / Atom feed
From: "Ludovic Brenta" <ludovic@ludovic-brenta.org>
Subject: Re: Dynamic link library
Date: 8 Dec 2005 00:54:05 -0800
Date: 2005-12-08T00:54:05-08:00	[thread overview]
Message-ID: <1134032045.584046.211470@g43g2000cwa.googlegroups.com> (raw)
In-Reply-To: <1133981338.734367.107740@o13g2000cwo.googlegroups.com>


Lucretia a écrit :
...
> /home/laguest/opt/wxAda/lib/adalib/libwxadad.so: undefined reference to
> `system__tasking__protected_objects__operations__complete_entry_body'
...
> collect2: ld returned 1 exit status
> gnatlink: cannot call /opt/gcc-4.1-20050902/bin/gcc
>
> raised MAKE.LINK_FAILED : make.adb:6289
> make[2]: *** [minimal] Error 1
> make[2]: Leaving directory
> `/home/laguest/src/svn-controlled/wxAda/samples/minimal'
> make[1]: *** [subdirs] Error 2
> make[1]: Leaving directory
> `/home/laguest/src/svn-controlled/wxAda/samples'
> make: *** [all-samples] Error 2
> [end]

Add -lgnat -lgnarl to your linker command line.  Also change -pthread
to
-lpthread, if you are on FreeBSD (GNU/Linux does not need this
library).

> Now, I finally found these references in the GNARL library, but if I
> link libgnarl to my lib the references are still not resolved.
>
> Anyone have any idea why this is?
>
> Thanks,
> Luke.
>
> P.S: And yes, I am using a makefile and not the GNAT projects. I want
> to know how to do this using a makefile, not a project file.

You should avoid recursive makefiles. One flat makefile is better
for various reasons [1].

[1] www.pcug.org.au/~millerp/rmch/recu-make-cons-harm.html

HTH

-- 
Ludovic Brenta.




      reply	other threads:[~2005-12-08  8:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-07 18:48 Dynamic link library Lucretia
2005-12-08  8:54 ` Ludovic Brenta [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