Article View: gnu.misc.discuss
Article #2251Re: attempting to make a shared libg++
From: Klamer Schutte
Date: Mon, 15 Nov 1993 09:26
Date: Mon, 15 Nov 1993 09:26
33 lines
2214 bytes
2214 bytes
In <jerry.753301158@kenya> jerry@tivoli.com (Jerry Frain) writes: >We're strongly considering using g++ for C++ development on several >platforms, but statically linking libg++ to each executable is going >make our product rather bloated, I fear. This means IMHO that you also should distribute the shared version og libg++; and size of libg++.so & one executable will be bigger than the executable linked to libg++.a. If you plan on shipping more executables than your choice is OK. >The above program (compiled with g++ and linked with my shared libg++) >promptly core-dumped with a SIGSEGV in ostream::operator<<. Line 612 >in iostream.cc, to be exact. This is a bit distressing, since it is >such a small, simple example. The problem probably is that the global constructors (for cout at least) are not called. You could fix that by placing this in a .sa library. >I'm planning on continuing to try to build a working a shared libg++, >but before I spend too much time on it, has anyone else attempted >this? Any ideas on how difficult this task might be? Yes, somebody has attempted it for earlier versions of libg++. (But don't know who :-() I anticipate that it will not be difficult, but a lot of work. Klamer -- Klamer Schutte Tel: +31-53-892778 Fax: +31-53-340045 Dept. of Electrical Engineering -- University of Twente, The Netherlands preferred: klamer@mi.el.utwente.nl SMTP: klamer@[130.89.33.3]
Technical Details
Message-ID:
<klamer.753355590@mi.el.utwente.nl>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!uknet!EU.net!sun4nl!utciva.civ.utwente.nl!klamerReferences:
<jerry.753301158@kenya>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1025b4,bf0ed279ad02f2c X-Google-Attributes: gid1025b4,public X-Google-Thread: 10ba33,bf0ed279ad02f2c X-Google-Attributes: gid10ba33,public X-Google-ArrivalTime: 1993-11-15 01:46:41 PST Newsgroups: gnu.misc.discuss,gnu.g++.help Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!uknet!EU.net!sun4nl!utciva.civ.utwente.nl!klamer From: klamer@mi.el.utwente.nl (Klamer Schutte) Subject: Re: attempting to make a shared libg++ Message-ID: <klamer.753355590@mi.el.utwente.nl> Sender: usenet@Utwente.NL ((UT-utciva)USENET News System) Organization: University of Twente, BSC-El References: <jerry.753301158@kenya> Date: Mon, 15 Nov 1993 09:26:30 GMT Lines: 33