This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: linking with gcc generated C++ libs fails
- To: Karsten Ballueder <karsten at phy dot hw dot ac dot uk>
- Subject: Re: linking with gcc generated C++ libs fails
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 08 Dec 1997 17:40:49 -0200
- Cc: egcs-bugs at cygnus dot com
- References: <199712081008.KAA24382@nevis.phy.hw.ac.uk>
Karsten Ballueder writes:
> Does this mean, that I have to recompile libraries containing C++ code
> instead of pure C?
Certainly
> Also, it failed compiling some simple code, with an internal compiler
> error, when defining a normal static class variable like:
You must provide a type, as C++ has never had the implicit int rule:
int
> myClass::variable = 0;
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil