This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
"multiply defined" ___CTOR_LIST___ under FreeBSD 2.2-980105-SNAP
- To: egcs-bugs at cygnus dot com
- Subject: "multiply defined" ___CTOR_LIST___ under FreeBSD 2.2-980105-SNAP
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Wed, 25 Mar 1998 16:14:05 +0100 (MET)
- Reply-To: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
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/