🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++
Article #300

Re: g++ vs Sun C++ 2.1

#300
From: Klamer Schutte
Date: Sun, 24 Jan 1993 15:37
39 lines
1954 bytes
In <1993Jan22.154545.6314@roadnet.com> rgb@roadnet.ups.com (Rudy Bonefas) writes:

] 1.  How do I build shared libraries with g++? I tried the -shared switch but
]	     it tells me that it doesn't recognize that option.

-fpic and -fPIC should do what you want.

] 2.  Aside from the obvious financial benefits of g++, can any of you former
]	 Sun C++ users inform me of the benefits/drawbacks to switching to g++.

g++ does not give any 'Not implemented' messages. However, some things are not
implemented, and make g++ dump core :-(.

g++ has (some) template support.

The C++ library with Sun C++ is a shared lib. libg++ is not, and this results
in quite big files. For example, this program:

#include        <iostream.h>

main()
{
        cout << "Hello, world\n";

        return 0;
}

resulted in a 16K executable for Sun C++, and a 81K executable for g++.

] 3.  I understand that g++ supports templates.  Where exactly is the 
]	  documentation for how to create template classes?  The only temmplate
]	  implementation which I am familiar with is ODI's compiler. 

See ARM. g++ specific documentation does not exist.

--
Klamer Schutte			Tel: +31-53-892778	Fax: +31-53-340045
Faculty of electrical engineering -- University of Twente, The Netherlands
preferred: klamer@mi.el.utwente.nl     SMTP: klamer@utelmi01.el.utwente.nl
Technical Details
Message-ID: <klamer.727889840@mi.el.utwente.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!think.com!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sun4nl!utrcu1!klamer
References: <1993Jan22.154545.6314@roadnet.com>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++,comp.lang.c++
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!think.com!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sun4nl!utrcu1!klamer
From: klamer@mi.el.utwente.nl (Klamer Schutte)
Subject: Re: g++ vs Sun C++ 2.1
Message-ID: <klamer.727889840@mi.el.utwente.nl>
Keywords: g++, c++
Sender: news@utwente.nl (USENET News System)
Organization: University of Twente, BSC-El
References: <1993Jan22.154545.6314@roadnet.com>
Date: Sun, 24 Jan 1993 15:37:20 GMT
Lines: 39