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]

Re: Problem with istream.seekg() and __mbstate_t


On Feb 12, 2001, Craig Rodrigues <rodrigc@mediaone.net> wrote:

> /tmp/ccx9JhBd.o: In function `seek(std::istream&)':
> /tmp/ccx9JhBd.o(.text+0x3c): undefined reference to `std::istream::seekg(std::fpos<__mbstate_t>)'
> collect2: ld returned 1 exit status

> Doing an nm on libstdc++.so.3, the closest symbol I could find was:
> 00053288 W std::istream::seekg(std::fpos<mbstate_t>)

Looks like a binary compatibility problem.  Could it be that libstdc++
was built with an older version of glibc headers, that had mbstate_t
as a struct name, as opposed to a typedef to __mbstate_t?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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