Hello,
I have two .cpp files. The first one contains:
Foo *foo;
and in the second one contains:
extern Foo foo;
I am using a modified version of gcc
with Makefiles automatically created.
The strange thing is that the tools
go through the link phase without
detecting the error. Isn't it to
be expected that the error be
caught by the linker???
I feel somewhat surprised that
it didn't catch it. I guess
when the linker looks for
external symbols it doesn't
care about matching their
types (eg. pointer versus value).
Thanks!!!
Neil