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]

c++/2619: Link fail with seekpos symbol



>Number:         2619
>Category:       c++
>Synopsis:       Link fail with seekpos symbol
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 23 20:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jean-Marc Valin
>Release:        gcc version 3.0 20010423 (prerelease) (RPM download)
>Organization:
>Environment:
Mandrake 8.0 (fresh install)
>Description:
When compiling the following program:

#include <sstream>
using namespace std;
int main ()
{
   int val;
   istringstream str_vector(string("10"));
   str_vector >> val;
}

I get a link error:

/home/jm/tmp/ccJSFtbS.o(.gnu.linkonce.d._ZTVSt15basic_stringbufIcSt11char_traitsIcESaIcEE+0x1c): undefined reference to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::seekpos(std::fpos<__mbstate_t>, std::_Ios_Openmode)'
collect2: ld returned 1 exit status

>How-To-Repeat:
Any file that uses the stringstream class won't link.
>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]