2 Regressions?
Chad Gatesman
chadg@redrose.net
Fri Sep 11 06:39:00 GMT 1998
I'm having two problems with egcs-1.1 that had not existed in
egcs-1.0.3, and has just about halted my development.
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):
-- t.c
#include "t2.h"
void main()
{
Func(1);
}
----
-- t2.h
inline int Func(int);
----
-- t2.c
inline int Func(int i)
{
return i*10;
}
----
----
chad:/tmp> gcc -c t.c
t.c#include "t2.h": In function `main':
t.c:4: warning: return type of `main' is not `int'
chad:/tmp> gcc -c t2.cc
chad:/tmp> gcc t.o t2.o -o t
t.o: In function `main':
t.o(.text+0x6): undefined reference to `Func'
collect2: ld returned 1 exit status
----
The second is with -frepo. I cannot get the simplest of STL samples to
compile with the -frepo flag. I don't know if this is related to the
problem I described above or not. Has anyone else encountered anything
similar? Is this a regression, or is there a new option I have to
specify for this behavior to work? I need some kind of work around.
Thanks,
--
Chad Gatesman
Software Engineer Work: 203.798.1007 x144
Bristol Technology http://www.bristol.com/
More information about the Gcc-bugs
mailing list