Undefined reference to static member

John Love-Jensen eljay@adobe.com
Tue Feb 4 19:50:00 GMT 2003


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.

--Eljay



More information about the Gcc-help mailing list