[Bug c++/19725] New: missing std::wstring support
hundertmarck at boehme-weihs dot de
gcc-bugzilla@gcc.gnu.org
Mon Jan 31 16:18:00 GMT 2005
I want to compile c++ source that uses std::wstring but std::wstring is
undeclared. So I greped around an found that the specialization in stringfwd.h
needs to declare _GLIBCXX_USE_WCHAR_T. After this define, the compiler prints
out many errors about missing declarations to some w-functions.
The following source should be compiled: <END_OF_SOURCE
#include <stdio.h>
#include <wchar.h>
#include <string>
using namespace std;
int main()
{
wstring ws( L"TEST WIDE CHARACTER STRING\n" );
printf( "%S\n", ws.c_str() );
return 0;
}
END_OF_SOURCE
I'm using gcc-3.4.3 with gcc-3.4.3-branch-update-20050110.patch.
# gcc -v
Reading specs from /usr/local/lib/gcc/hppa64-hp-hpux11.11/3.4.4/specs
Configured with: /soft/gnu/tmp/gcc-3.4.3/configure --prefix=/usr/local
--without-libgcj --enable-languages=c,objc,c++ --with-ld=/usr/local/bin/ld
--with-as=/usr/local/bin/as
Thread model: single
gcc version 3.4.4 20050111 (prerelease)
# /usr/local/bin/ld -v
GNU ld version 2.14 20030612
I have tried to compile the same code with the gcc-3.4.3 build by the HP-UX
Porting Centre but it fails with the same behavior.
Before that I tried the same code with gcc-3.1. It fails with the same behavior too.
Do I anything wrong?
Is that really a Bug? => exists a workaround?
Thanks ahead
Jörg Hundertmarck
Ps.: Please excuse the poor english
--
Summary: missing std::wstring support
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hundertmarck at boehme-weihs dot de
CC: gcc-bugs at gcc dot gnu dot org,hundertmarck at boehme-
weihs dot de
GCC build triplet: hppa64-hp-hpux11.11
GCC host triplet: hppa64-hp-hpux11.11
GCC target triplet: hppa64-hp-hpux11.11
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19725
More information about the Gcc-bugs
mailing list