I wrote:
Oh, right. Well, doesn't it look like a compiler bug? The GCC
info
manual says (under "C Extensions -> Inline"):
[snip]
I'll pop over to the GCC lists tomorrow and see if this has been
discussed.
Sure enough, this is a gcc bug. Take a look at
<
URL:http://gcc.gnu.org/ml/gcc-bugs/2002-07/msg00473.html>. On my
machine, with no optimization, the example there fails to link with:
/tmp/ccNAwJ4z.o: In function `main':
/tmp/ccNAwJ4z.o(.text+0x7): undefined reference to `fff'
collect2: ld returned 1 exit status
Using any optimization setting at all causes it to link correctly. So
now the question becomes whether we should try to work around this bug
or not, and if so, how.
--
Jerry James
http://www.ittc.ku.edu/~james/