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]

More test results...



this time, I'm suddenly getting errors on my own productions code. Ah, 
the joys of bleeding edge (software gingivitis?).

My problem is multiple definitions of std::numeric_limits symbols.
The link errors I get are (filenames have been changed to protect my 
innocence):

xxx1.o(.bss+0x68): multiple definition of 
`std::numeric_limits<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > >::is_integer'
xxx2.o(.bss+0x0): first defined here
xxx3.o(.bss+0x0): multiple definition of 
`std::numeric_limits<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > >::is_integer'
xxx2.o(.bss+0x0): first defined here
collect2: ld returned 1 exit status

Since the only thing that changed here is a newer version of the 
compiler and binutils, I'm assuming this is related to the recent 
versioning changes.

FWIW, the numeric_limits here are used to select a template 
specialization and should not even end up in the compiled code.

-- 
Stephen M. Webb


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