This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: linking with gcc generated C++ libs fails


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]