This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Pain with multiple definitions


It seems the last patch I checked in butts heads with concept checking
and the recent addition of std:: qualifications to everything.  Now
when I try to build the libary, I get the following link errors.  Any
help is appreciated so I don't have to revert
http://gcc.gnu.org/ml/libstdc++/2003-06/msg00414.html

Thanks,
Jerry

/home/jlquinn/gcc/dev/build/gcc/xgcc -shared-libgcc -B/home/jlquinn/gcc/dev/build/gcc/ -nostdinc++  -L/home/jlquinn/gcc/dev/build/i686-pc-linux-gnu/libstdc++-v3/src -L/home/jlquinn/gcc/dev/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -shared -nostdlib /usr/lib/crti.o /home/jlquinn/gcc/dev/build/gcc/crtbeginS.o  .libs/allocator-inst.o .libs/codecvt.o .libs/complex_io.o .libs/concept-inst.o .libs/ctype.o .libs/demangle.o .libs/ext-inst.o .libs/fstream-inst.o .libs/functexcept.o .libs/globals.o .libs/io-inst.o .libs/ios.o .libs/istream-inst.o .libs/limits.o .libs/locale.o .libs/locale-inst.o .libs/localename.o .libs/misc-inst.o .libs/ostream-inst.o .libs/sstream-inst.o .libs/stdexcept.o .libs/streambuf-inst.o .libs/string-inst.o .libs/strstream.o .libs/valarray-inst.o .libs/wstring-inst.o .libs/codecvt_members.o .libs/collate_members.o .libs/ctype_members.o .libs/messages_members.o .libs/monetary_members.o .libs/numeric_members.o .libs/time_members.o .libs/basic_file.o .libs/c++locale.o -Wl,--whole-archive ../libmath/.libs/libmath.a ../libsupc++/.libs/libsupc++convenience.a -Wl,--no-whole-archive  -L/home/jlquinn/gcc/dev/build/i686-pc-linux-gnu/libstdc++-v3/src -L/home/jlquinn/gcc/dev/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -lm ../libmath/.libs/libmath.a -lm ../libsupc++/.libs/libsupc++convenience.a -lm -L/home/jlquinn/gcc/dev/build/gcc -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.4 -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.4/../../.. -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s   /home/jlquinn/gcc/dev/build/gcc/crtendS.o /usr/lib/crtn.o  -Wl,-O1 -Wl,--version-script=libstdc++-symbol.ver -Wl,-soname -Wl,libstdc++.so.6 -o .libs/libstdc++.so.6.0.0
.libs/locale-inst.o(.bss._ZNSt8numpunctIcE2idE+0x0): In function `_GLOBAL__I__ZNSt21__ctype_abstract_baseIcED0Ev.._.._.._.._gcc_libstdc___v3_src_locale_inst.ccXWsiya':
/home/jlquinn/gcc/dev/build/i686-pc-linux-gnu/libstdc++-v3/include/bits/locale_facets.h:604: multiple definition of `std::numpunct<char>::id'
.libs/concept-inst.o(.bss._ZNSt8numpunctIcE2idE+0x0):/home/jlquinn/gcc/dev/build/i686-pc-linux-gnu/libstdc++-v3/include/bits/boost_concept_check.h:35: first defined here
.libs/locale-inst.o(.bss._ZNSt8numpunctIwE2idE+0x0): multiple definition of `std::numpunct<wchar_t>::id'
.libs/concept-inst.o(.bss._ZNSt8numpunctIwE2idE+0x0): first defined here
.libs/locale-inst.o(.bss._ZGVNSt8numpunctIcE2idE+0x0): multiple definition of `guard variable for std::numpunct<char>::id'
.libs/concept-inst.o(.bss._ZGVNSt8numpunctIcE2idE+0x0): first defined here
.libs/locale-inst.o(.bss._ZGVNSt8numpunctIwE2idE+0x0): multiple definition of `guard variable for std::numpunct<wchar_t>::id'
.libs/concept-inst.o(.bss._ZGVNSt8numpunctIwE2idE+0x0): first defined here
collect2: ld returned 1 exit status
make[1]: *** [libstdc++.la] Error 1
make[1]: Leaving directory `/home/jlquinn/gcc/dev/build/i686-pc-linux-gnu/libstdc++-v3/src'
make: *** [install-recursive] Error 1
jlquinn@smaug:~/gcc/dev/build/i686-pc-linux-gnu/libstdc++-v3$

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]