This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/2619: Link fail with seekpos symbol
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2619: Link fail with seekpos symbol
- From: valj01 at gel dot usherb dot ca
- Date: 24 Apr 2001 03:24:25 -0000
- Reply-To: valj01 at gel dot usherb dot ca
>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: