"multiply defined" ___CTOR_LIST___ under FreeBSD 2.2-980105-SNAP
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Wed Mar 25 09:58:00 GMT 1998
Now that egcs-current-CVS finally works under FreeBSD[1], I get link
errors like the following for a C++ project:
[...]
diag.o: Definition of symbol `___CTOR_LIST__' (multiply defined)
sql.o: Definition of symbol `___DTOR_LIST__' (multiply defined)
sql.o: Definition of symbol `___CTOR_LIST__' (multiply defined)
ld: /sw/swtest/egcs/BSD/lib/libstdc++.a(streambuf.o): unexpected
multiple definitions of symbol `___DTOR_LIST__', type 0x16
sql.o:13: Definition of symbol `___DTOR_LIST__' (multiply defined)
ld: /sw/swtest/egcs/BSD/lib/libstdc++.a(streambuf.o): unexpected
multiple definitions of symbol `___CTOR_LIST__', type 0x16
sql.o:13: Definition of symbol `___CTOR_LIST__' (multiply defined)
collect2: ld returned 1 exit status
If you want, I can try to destill something from my larger codebase,
but this seems to be a very general problem, so perhaps those lines
above already trigger some fix?
Gerald
[1] Thanks Jeff, Jörn and Mark, plus probably a couple of others!
--
Gerald Pfeifer (Jerry) Vienna University of Technology
pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/
More information about the Gcc-bugs
mailing list