Undefined reference to static member
Ben Davis
bnd25@cam.ac.uk
Tue Feb 4 19:58:00 GMT 2003
On Tuesday 04 February 2003 7:45 pm, John Love-Jensen wrote:
> Hi Leo,
>
> It could be link order.
>
> g++ -o myapp foo.o bar.o
>
> If bar.o has dangling references that are satisfied in foo.o, they won't be
> pulled in because the (single pass!) link order is reversed.
This can't be true... can it? I've NEVER had a problem with link order of .o
files. In my experience, only the order of -l switches is important...
Ben
More information about the Gcc-help
mailing list