Article View: gnu.gcc.help
Article #49567Dynamically loading g++ compiled code (SunOS/Solaris)
From: Nick Ing-Simmons
Date: Thu, 06 Jan 1994 19:17
Date: Thu, 06 Jan 1994 19:17
12 lines
1070 bytes
1070 bytes
I want to dynamically load C++ code compiled with gcc (2.4.5 or 2.5.7) on suns. There is obviously an issue with "static" constructors in the loaded module. Has anyone done anything in this area ? My thoughts so far are to get a collect2-like program to build functions which I can lookup with dlsym() and write dlopen()/dlclose() wrappers to call them. Can I use collect2 as-is?
Technical Details
Message-ID:
<CJ82wL.GHG@csc.ti.com>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!cauldron!ra.csc.ti.com!pluto!a904209Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,982092a462c0eda2,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-01-06 13:23:22 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!cauldron!ra.csc.ti.com!pluto!a904209 From: a904209@server1.tiuk.ti.com (Nick Ing-Simmons) Subject: Dynamically loading g++ compiled code (SunOS/Solaris) Message-ID: <CJ82wL.GHG@csc.ti.com> Sender: usenet@csc.ti.com Nntp-Posting-Host: pluto.tiuk.ti.com Reply-To: a904209@server1.tiuk.ti.com Organization: Texas Instruments Ltd. Date: Thu, 6 Jan 1994 19:17:08 GMT Lines: 15