libstdc++ bug - need help (IRIX)
jarausch@igpm.rwth-aachen.de
jarausch@igpm.rwth-aachen.de
Mon Feb 12 01:08:00 GMT 2001
Hi,
I still struggle against the basic_stringbug<..>::seekpos problem
While I could resolve the problem on Linux (there were some outdated
_G_config files in /usr/local/include/g++-v3/
the problem still remains on my IRIX box.
When libstdc++ is built the definition of mbstate_t of
/usr/include/wchar.h gets priority saying
#ifndef _MBSTATE_T
# define _MBSTATE_T
typedef char mbstate_t;
#endif
but when I invoke g++ lateron
/usr/LOCAL/include/g++-v3/bits/std_cwchar.h
redefines it
#ifndef _GLIBCPP_HAVE_MBSTATE_T
extern "C"
{
typedef struct
{
int __fill[6];
} mbstate_t;
}
#endif
although both
/usr/LOCAL/include/g++-v3/mips-sgi-irix6.5/bits/c++config.h
and
/usr/LOCAL/mips-sgi-irix6.5/include/g++-v3/bits/c++config.h
are saying
// Define if mbstate_t exists in wchar.h. */
#define _GLIBCPP_HAVE_MBSTATE_T 1
Trying to
#define _GLIBCPP_HAVE_MBSTATE_T 1
in my source files gives lots of compile errors since
it lacks mbstate_t
How to solve this problem?
Thanks for any hints,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany
More information about the Gcc-bugs
mailing list