Next: getting g++
[Source Files]
[C++ Home]
Frequently asked questions about the GNU C++ compiler
[by Joe Buck (jbuck@ohm.berkeley.edu) --- February 15, 1993]
Preface
This is a list of frequently asked questions (FAQ) for g++ users; thanks to
all those who sent suggestions for improvements. Thanks to Marcus Speh
for doing the index.
Many FAQ's, including this one, are available on the archive site
rtfm.mit.edu, in the directory pub/usenet/news.answers.
This FAQ may be found in the subdirectory g++-FAQ.
Some information in this FAQ was developed for earlier versions of the
compiler and may now be obsolete. Please send corrections.
I'm looking for new questions (with answers), better answers,
or both. One thing that's
missing is a section on templates and template problems with g++; I'm
looking for contributions on this score. You can mail comments,
suggestions, flames, etc. to jbuck@synopsys.com. Please don't
assume, though, that because my name is on this thing that I am the
world expert on g++/C++ and you should mail all your tricky questions to
me. I'd like to be helpful but I'm getting more of this than I can
deal with lately. Also please don't assume that I am an official
spokesman for g++, FSF, or Cygnus; I'm not.
This FAQ is intended to supplement, not replace, Marshall Cline's
excellent FAQ for the C++ language and for the newsgroup
comp.lang.c++. Especially if g++ is the first C++
compiler you've ever used, the question "How do I do <X> with g++?"
is probably really "How do I do <X> in C++?". You can obtain the
C++ FAQ by anonymous FTP from sun.soe.clarkson.edu [128.153.12.3],
in the file ~ftp/pub/C++/FAQ. (There is also a mail server for that
FAQ, but it seems to be broken).
Menu
- getting g++
- Obtaining Source Code
- installation
- Installation Issues and Problems
- User Problems
- User Problems
- legalities
- What are the rules for shipping code built with g++ and libg++?
- index
- Concept Index
--- The Detailed Node Listing ---
Obtaining Source Code
- g++ for Unix
- How do I get a copy of g++ for Unix?
- g++ for HP
- Getting gcc/g++ for the HP Precision Architecture
- g++ for Solaris 2.x
- Getting gcc/g++ binaries for Solaris 2.x
- g++ for other platforms
- How do I get a copy of g++ for (some other platform)?
- 1.x vs 2.x versions
- But I can only find g++-1.42!
- latest versions
- What is the latest version of gcc, g++, and libg++?
Installation Issues and Problems
- gcc-2 + g++-1
- I can't build g++ 1.x.y with gcc-2.x.y!
- what else do I need?
- OK, I've obtained gcc; what else do I need?
- use GNU linker?
- Should I use the GNU linker, or should I use "collect"?
- Use GNU assembler?
- Should I use the GNU assembler, or my vendor's assembler?
- Use GNU C library?
- Should I use the GNU C library?
- Problems building libg++ on 386/486
- Other problems building libg++
- Rebuild libg++?
- Do I need to rebuild libg++ to go with my new g++?
User Problems
- 2.5.x changes in overloading
- Changes in function overloading
- Demangler
- Where can I find a demangler?
- static data members
- Linker reports undefined symbols for static data members
- placement new syntax
- g++ won't accept the placement new syntax.
- overloaded increment and decrement
- operator++ and operator--
- bug reports
- I think I have found a bug in g++.
- porting to g++
- Porting programs from other compilers to g++
- name mangling
- Why does g++ mangle names differently from other C++ compilers?
- problems linking with other libraries
- Why can't g++ code link with code from other C++ compilers?
- documentation
- What documentation exists for g++ 2.x?
- agreement with standards
- What are the differences between g++ and the ARM specification of C++?
- compiling standard libraries
- Will g++ compile InterViews? The NIH class library?
- debugging on SVR4 systems
- Debugging on SVR4 systems