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]

libstdc++/1693: sstream causes linkage error



>Number:         1693
>Category:       libstdc++
>Synopsis:       sstream causes linkage error
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 18 03:16:04 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Helmut Jarausch, Lehrst. Numer. Math, RWTH Aachen, Germany
>Release:        recent
>Organization:
>Environment:
linux glibc 2.2.1 / kernel 2.4.0
IRIX 6.5.9
>Description:
ld32: ERROR   33 : Unresolved text symbol "std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::seekpos(std::fpos<mbstate_t>, std::_Ios_Openmode)" -- 1st referenced by /var/tmp/ccEIphge.o.
>How-To-Repeat:
try to compile and link:


#include <string>
using std::string;

#include <sstream>
using std::istringstream;

int main() {
  string Input1("  word1 word2\n   word3");
  istringstream Inp(Input1);
  string S;
  Inp >> S;  // ignores white chars
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

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