| 1 |
|
|---|
| 2 | GCC Frequently Asked Questions
|
|---|
| 3 |
|
|---|
| 4 | The latest version of this document is always available at
|
|---|
| 5 | [1]http://gcc.gnu.org/faq.html.
|
|---|
| 6 |
|
|---|
| 7 | This FAQ tries to answer specific questions concerning GCC. For
|
|---|
| 8 | general information regarding C, C++, resp. Fortran please check the
|
|---|
| 9 | [2]comp.lang.c FAQ, [3]comp.std.c++ FAQ, and the [4]Fortran
|
|---|
| 10 | Information page.
|
|---|
| 11 |
|
|---|
| 12 | Other GCC-related FAQs: [5]libstdc++-v3, and [6]GCJ.
|
|---|
| 13 | _________________________________________________________________
|
|---|
| 14 |
|
|---|
| 15 | Questions
|
|---|
| 16 |
|
|---|
| 17 | 1. [7]General information
|
|---|
| 18 | 1. [8]What is the relationship between GCC and EGCS?
|
|---|
| 19 | 2. [9]What is an open development model?
|
|---|
| 20 | 3. [10]How do I get a bug fixed or a feature added?
|
|---|
| 21 | 4. [11]Does GCC work on my platform?
|
|---|
| 22 | 2. [12]Installation
|
|---|
| 23 | 1. [13]How to install multiple versions of GCC
|
|---|
| 24 | 2. [14]Dynamic linker is unable to find GCC libraries
|
|---|
| 25 | 3. [15]libstdc++/libio tests fail badly with --enable-shared
|
|---|
| 26 | 4. [16]GCC can not find GNU as/GNU ld
|
|---|
| 27 | 5. [17]cpp: Usage:... Error
|
|---|
| 28 | 6. [18]Optimizing the compiler itself
|
|---|
| 29 | 7. [19]Why does libiconv get linked into jc1 on Solaris?
|
|---|
| 30 | 3. [20]Testsuite problems
|
|---|
| 31 | 1. [21]How do I pass flags like -fnew-abi to the testsuite?
|
|---|
| 32 | 2. [22]How can I run the test suite with multiple options?
|
|---|
| 33 | 4. [23]Older versions of GCC
|
|---|
| 34 | 1. [24]Is there a stringstream / sstream for GCC 2.95.2?
|
|---|
| 35 | 5. [25]Miscellaneous
|
|---|
| 36 | 1. [26]Friend Templates
|
|---|
| 37 | 2. [27]dynamic_cast, throw, typeid don't work with shared
|
|---|
| 38 | libraries
|
|---|
| 39 | 3. [28]Why do I need autoconf, bison, xgettext, automake, etc?
|
|---|
| 40 | 4. [29]Why can't I build a shared library?
|
|---|
| 41 | 5. [30]When building C++, the linker says my constructors,
|
|---|
| 42 | destructors or virtual tables are undefined, but I defined
|
|---|
| 43 | them
|
|---|
| 44 | 6. [31]Will GCC someday include an incremental linker?
|
|---|
| 45 | _________________________________________________________________
|
|---|
| 46 |
|
|---|
| 47 | General information
|
|---|
| 48 |
|
|---|
| 49 | What is the relationship between GCC and EGCS?
|
|---|
| 50 |
|
|---|
| 51 | In 1990/1991 gcc version 1 had reached a point of stability. For the
|
|---|
| 52 | targets it could support, it worked well. It had limitations inherent
|
|---|
| 53 | in its design that would be difficult to resolve, so a major effort
|
|---|
| 54 | was made to resolve those limitations and gcc version 2 was the
|
|---|
| 55 | result.
|
|---|
| 56 |
|
|---|
| 57 | When we had gcc2 in a useful state, development efforts on gcc1
|
|---|
| 58 | stopped and we all concentrated on making gcc2 better than gcc1 could
|
|---|
| 59 | ever be. This is the kind of step forward we wanted to make with the
|
|---|
| 60 | EGCS project when it was formed in 1997.
|
|---|
| 61 |
|
|---|
| 62 | In April 1999 the Free Software Foundation officially halted
|
|---|
| 63 | development on the gcc2 compiler and appointed the EGCS project as the
|
|---|
| 64 | official GCC maintainers. The net result was a single project which
|
|---|
| 65 | carries forward GCC development under the ultimate control of the
|
|---|
| 66 | [32]GCC Steering Committee.
|
|---|
| 67 | _________________________________________________________________
|
|---|
| 68 |
|
|---|
| 69 | What is an open development model?
|
|---|
| 70 |
|
|---|
| 71 | We are using a bazaar style [33][1] approach to GCC development: we
|
|---|
| 72 | make snapshots publicly available to anyone who wants to try them; we
|
|---|
| 73 | welcome anyone to join the development mailing list. All of the
|
|---|
| 74 | discussions on the development mailing list are available via the web.
|
|---|
| 75 | We're going to be making releases with a much higher frequency than
|
|---|
| 76 | they have been made in the past.
|
|---|
| 77 |
|
|---|
| 78 | In addition to weekly snapshots of the GCC development sources, we
|
|---|
| 79 | have the sources readable from a CVS server by anyone. Furthermore we
|
|---|
| 80 | are using remote CVS to allow remote maintainers write access to the
|
|---|
| 81 | sources.
|
|---|
| 82 |
|
|---|
| 83 | There have been many potential GCC developers who were not able to
|
|---|
| 84 | participate in GCC development in the past. We want these people to
|
|---|
| 85 | help in any way they can; we ultimately want GCC to be the best
|
|---|
| 86 | compiler in the world.
|
|---|
| 87 |
|
|---|
| 88 | A compiler is a complicated piece of software, there will still be
|
|---|
|
|---|