From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4ed64cbe756a5c66 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!g43g2000cwa.googlegroups.com!not-for-mail From: "Ludovic Brenta" Newsgroups: comp.lang.ada Subject: Re: Dynamic link library Date: 8 Dec 2005 00:54:05 -0800 Organization: http://groups.google.com Message-ID: <1134032045.584046.211470@g43g2000cwa.googlegroups.com> References: <1133981338.734367.107740@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: 212.190.145.10 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1134032050 11494 127.0.0.1 (8 Dec 2005 08:54:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 8 Dec 2005 08:54:10 +0000 (UTC) In-Reply-To: <1133981338.734367.107740@o13g2000cwo.googlegroups.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; SunOS sun4u; fr-FR; rv:1.6) Gecko/20040116,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 SEVPXS01 Complaints-To: groups-abuse@google.com Injection-Info: g43g2000cwa.googlegroups.com; posting-host=212.190.145.10; posting-account=ZjNXewwAAADyBPkwI57_UcX8yKfXWOss Xref: g2news1.google.com comp.lang.ada:6766 Date: 2005-12-08T00:54:05-08:00 List-Id: Lucretia a =E9crit : .=2E. > /home/laguest/opt/wxAda/lib/adalib/libwxadad.so: undefined reference to > `system__tasking__protected_objects__operations__complete_entry_body' .=2E. > 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 --=20 Ludovic Brenta.