This is the mail archive of the gcc-prs@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]
Other format: [Raw text]

libstdc++/10061: cannot use wchar_t in gcc-3.2.2/solaris8, _GLIBCPP_USE_WCHAR_T undefined


>Number:         10061
>Category:       libstdc++
>Synopsis:       cannot use wchar_t in gcc-3.2.2/solaris8, _GLIBCPP_USE_WCHAR_T undefined
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 13 14:56:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Niki W. Waibel
>Release:        gcc version 3.2.2
>Organization:
>Environment:
SunOS blade100-2 5.8 Generic_114018-01 sun4u sparc SUNW,Sun-Blade-100 Solaris
>Description:
_GLIBCPP_USE_WCHAR_T is undefined in sparc-sun-solaris2.8/libstdc++-v3/config.h during the bootstrap process of gcc-3.2.2 (on solaris8). because of that i cannot compile
id3lib-3.8.3. i get:
===
g++ -Wall -O3 -I/misc/sparc-sun-solaris2.8/include -Wall -Wno-unused -Wno-inline -Woverloaded-virtual -Wmissing-declarations -Wl,--rpath -Wl,/misc/sparc-sun-solaris2.8/lib -o .libs/id3info demo_info_options.o demo_info.o getopt.o getopt1.o  -L/misc/sparc-sun-solaris2.8/lib ../src/.libs/libid3.so -lz /misc/sparc-sun-solaris2.8/opt/libiconv/1.8/lib/libiconv.so -Wl,--rpath -Wl,/misc/sparc-sun-solaris2.8/opt/id3lib/3.8.3/lib -Wl,--rpath -Wl,/misc/sparc-sun-solaris2.8/opt/libiconv/1.8/lib -Wl,--rpath -Wl,/misc/sparc-sun-solaris2.8/lib
../src/.libs/libid3.so: undefined reference to `std::char_traits<wchar_t>::compare(wchar_t const*, wchar_t const*, unsigned)'
../src/.libs/libid3.so: undefined reference to `std::char_traits<wchar_t>::assign(wchar_t*, unsigned, wchar_t)'
../src/.libs/libid3.so: undefined reference to `std::char_traits<wchar_t>::copy(wchar_t*, wchar_t const*, unsigned)'
../src/.libs/libid3.so: undefined reference to `std::char_traits<wchar_t>::move(wchar_t*, wchar_t const*, unsigned)'
collect2: ld returned 1 exit status
make[2]: *** [id3info] Error 1
===

others have reported such troubles also: #10041, http://gcc.gnu.org/ml/gcc-help/2002-10/msg00030.html

on solaris wide character support should work. the header files are there: wchar_impl.h, widec.h, wchar.h, wctype.h, wstring.h, ...

unfort i am not a c++ expert ...
>How-To-Repeat:

>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]