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: 2 Regressions?


Chad Gatesman <chadg@redrose.net> writes:

> First is that if you put inlines in the C or C++ module instead of in
> the header file, it does not link correctly (example below):

Which is correct, at least for C++.  The C++ Standard requires you to
*define* an inline function in every translation unit that uses it.
I don't know whether the C standard does too.

-- 
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]