🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Rudy Bonefas Fri, 22 Jan 1993 15:45
g++ vs Sun C++ 2.1
#299
Author: Rudy Bonefas
Date: Fri, 22 Jan 1993 15:45
18 lines
1242 bytes
For financial reasons we are considering switching from the Sun 2.1 C++ compiler to
GNU's g++.  I have already obtained release 2.3.3 of gcc, built it, and am beginning
to run our massive C++ library through it.  However I have a couple of questions for
the net:

	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.

	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++.

	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. 

Thanks in advance for your responses,

Rudy G. Bonefas (RGB - graphics is my middle name)
Re: g++ vs Sun C++ 2.1
#300
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads