Article View: gnu.gcc.help
Article #53126Help with using dynamic linker!!
From: John Ngai
Date: Tue, 10 Mar 1992 01:49
Date: Tue, 10 Mar 1992 01:49
18 lines
1250 bytes
1250 bytes
Help!! I am trying to use gcc2.0 with the SUN's run-time dynamic linker facility. With "g++2.0", I am using the GNU's linker "gld". But somehow gld refuses to recognize the "-ldl" flag specifying the "libdl.so.1.0" shared library, even if the file is clearly in the searched directory "/usr/lib". The problem goes away if I switch back the SUN linker "ld", but then I run into problem with static object constructor initialization. Also, in g++2.0, what flags do I specify in order to generate a run-time linkable object file that can be read by SUN's "dlopen()"? (Oh, I am using SPARC running SunOS 4.1.2) Thank you very much. -- John
Technical Details
Message-ID:
<1992Mar10.014916.1702@walter.bellcore.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!rutgers!bellcore!walter!nova!ngaiShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,a9d464d9535effde,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-03-09 19:26:19 PST Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!rutgers!bellcore!walter!nova!ngai From: ngai@faline.bellcore.com (John Ngai) Newsgroups: gnu.gcc.help Subject: Help with using dynamic linker!! Keywords: G++2.0 Gld -ldl Message-ID: <1992Mar10.014916.1702@walter.bellcore.com> Date: 10 Mar 92 01:49:16 GMT Sender: ngai@nova (John Ngai 21371) Organization: Bellcore Lines: 18 Nntp-Posting-Host: nova.bellcore.com