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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4ed64cbe756a5c66,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail From: "Lucretia" Newsgroups: comp.lang.ada Subject: Dynamic link library Date: 7 Dec 2005 10:48:58 -0800 Organization: http://groups.google.com Message-ID: <1133981338.734367.107740@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: 194.74.199.42 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1133981346 10522 127.0.0.1 (7 Dec 2005 18:49:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 7 Dec 2005 18:49:06 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 Symantec_Web_Security (3.0.1.74), 1.0 C2100-0050414028 (NetCache NetApp/5.5R5) Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=194.74.199.42; posting-account=G-J9fgwAAADgpzBiEyy5tO4f8MX5fbpw Xref: g2news1.google.com comp.lang.ada:6764 Date: 2005-12-07T10:48:58-08:00 List-Id: Whilst rebuilding my lib as a shared one, I noticed the following link errors: [begin] cd samples && make make[1]: Entering directory `/home/laguest/src/svn-controlled/wxAda/samples' make[2]: Entering directory `/home/laguest/src/svn-controlled/wxAda/samples/minimal' gnatmake -I.. -aI/home/laguest/opt/wxAda/lib/adainclude -u -D debug minimal.adb gcc -c -I.. -I/home/laguest/opt/wxAda/lib/adainclude -o debug/minimal.o minimal.adb gnatmake -I.. -aI/home/laguest/opt/wxAda/lib/adainclude -u -D debug minimal_app.adb gcc -c -I.. -I/home/laguest/opt/wxAda/lib/adainclude -o debug/minimal_app.o minimal_app.adb gnatmake -I.. -aI/home/laguest/opt/wxAda/lib/adainclude -u -D debug minimal_frame.adb gcc -c -I.. -I/home/laguest/opt/wxAda/lib/adainclude -o debug/minimal_frame.o minimal_frame.adb gnatmake -I.. -aI/home/laguest/opt/wxAda/lib/adainclude -u -D debug test_event.adb gcc -c -I.. -I/home/laguest/opt/wxAda/lib/adainclude -o debug/test_event.o test_event.adb cd debug; \ gnatmake -b -aO/home/laguest/opt/wxAda/lib/adalib minimal; \ gnatmake -l -aO/home/laguest/opt/wxAda/lib/adalib minimal -largs -lwxadad -L/home/laguest/opt/wxAda/lib/adalib `wx-config --debug=yes --libs` gnatbind -aO./ -aO/home/laguest/opt/wxAda/lib/adalib -I- -x minimal.ali gnatlink minimal.ali -lwxadad -L/home/laguest/opt/wxAda/lib/adalib -L/home/laguest/opt/wxGTK/lib -pthread -L/usr/X11R6/lib -lwx_gtk2d_xrc-2.6 -lwx_gtk2d_qa-2.6 -lwx_gtk2d_html-2.6 -lwx_gtk2d_dbgrid-2.6 -lwx_gtk2d_adv-2.6 -lwx_gtk2d_core-2.6 -lwx_based_odbc-2.6 -lwx_based_xml-2.6 -lwx_based_net-2.6 -lwx_based-2.6 /home/laguest/opt/wxAda/lib/adalib/libwxadad.so: undefined reference to `system__tasking__protected_objects__operations__complete_entry_body' /home/laguest/opt/wxAda/lib/adalib/libwxadad.so: undefined reference to `system__tasking__protected_objects__operations__service_entries' /home/laguest/opt/wxAda/lib/adalib/libwxadad.so: undefined reference to `system__tasking__protected_objects__entries__protection_entriesIP' /home/laguest/opt/wxAda/lib/adalib/libwxadad.so: undefined reference to `system__tasking__protected_objects__operations__protected_entry_call' /home/laguest/opt/wxAda/lib/adalib/libwxadad.so: undefined reference to `system__tasking__protected_objects__entries__initialize_protection_entries' /home/laguest/opt/wxAda/lib/adalib/libwxadad.so: undefined reference to `system__tasking__protected_objects__operations__communication_blockIP' /home/laguest/opt/wxAda/lib/adalib/libwxadad.so: undefined reference to `system__tasking__protected_objects__entries__lock_entries' 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] 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.