This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

(1.0.2-pre) string template instantiation problem on Win32


After Jason reverted the changes to libstd libstdc++/std/bastring.h and 
libstdc++/sinst.cc, I've been getting the following symbols undefined
on i386-cygwin32 and other Win32 variants when running the testsuite.

tstring.cc test:

=========================================
`basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::check_realloc(unsigned int) const'
`create__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03RepUi'
`copy__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03RepUiPCcUi'
`copy__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03RepUiPCcUi'
`move__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03RepUiPCcUi'
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03RepPv'
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03RepPv'
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03RepPv'
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03RepPv'
`_length_error(char const *)':
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03RepPv'
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03RepPv' follow

=========================================

I've seen others reporting something similar here as well, but on some
other platform. The only solution I've found is to put back Jason's 
initial change and now everybody is happy, just that my object files are
now quite bloated waiting for the linker to discard duplicates.
 
Mumit


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