This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: 2 Regressions?
- To: Chad Gatesman <chadg at redrose dot net>
- Subject: Re: 2 Regressions?
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 12 Sep 1998 02:13:19 z
- Cc: egcs-bugs at cygnus dot com, David Waltermire <dwalt at desupernet dot net>
- References: <98Sep11.092504edt.26881@gateway.bristol.com>
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