https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86643

            Bug ID: 86643
           Summary: [9 Regression] basic_ostringstream usage leads
                    to:undefined reference to
                    `std::__cxx11::basic_stringstream
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: redi at gcc dot gnu.org
  Target Milestone: ---

Compiling ostringstream example fails to link with GCC 9 (today's version);
works with GCC 8.

# g++ foo.cc
/tmp/ccBHU05J.o: In function `main':
foo.cc:(.text+0x17): undefined reference to
`std::__cxx11::basic_stringstream<char, std::char_traits<char>,
std::allocator<char> >::basic_stringstream()'
collect2: error: ld returned 1 exit status

Example from:
https://en.cppreference.com/w/cpp/io/basic_ostringstream/basic_ostringstream

Reply via email to