Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: localhost.localdomain: ronald set sender to blytkerchan AT users DOT sourceforge DOT net using -f Date: Thu, 25 Sep 2003 11:53:19 +0200 From: Ronald Landheer-Cieslak To: cygwin AT cygwin DOT com Cc: Joshua Kwan Subject: Re: No support for wchar_t in latest Cygwin? Message-ID: <20030925095319.GA6237@linux_rln.harvest> Reply-To: cygwin AT cygwin DOT com References: <20030925045912 DOT GA2878 AT firesong> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030925045912.GA2878@firesong> User-Agent: Mutt/1.4i X-Disclaimer: I had nothing to do with it - I swear! X-loop: linux_rln.harvest AFAIK, this is a PTC situation.. http://cygwin.com/contrib.html rlc On Wed, Sep 24, 2003 at 09:59:14PM -0700, Joshua Kwan wrote: > Hi, it's me again :) > > I've been developing some software in C++ and have tested it on Linux > and FreeBSD, so I decided yesterday to test it on my Cygwin > installation. > > The library I link against the program requires wchar_t support. > However, when I build it: > > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text+0x18f5):tstring.cpp: undefined reference to `std::char_traits::compare(wchar_t const*, wchar_t const*, unsigned)' > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text+0x1984):tstring.cpp: undefined reference to `std::char_traits::length(wchar_t const*)' > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text+0x214c):tstring.cpp: undefined reference to `std::char_traits::compare(wchar_t const*, wchar_t const*, unsigned)' > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text$_ZNSbIwSt11char_traitsIwESaIwEEC1EPKwRKS1_+0x19):tstring.cpp: undefined reference to `std::char_traits::length(wchar_t const*)' > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text$_ZNKSbIwSt11char_traitsIwESaIwEE4findEPKwjj+0x3f):tstring.cpp: undefined reference to `std::char_traits::compare(wchar_t const*, wchar_t const*, unsigned)' > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text$_ZNSbIwSt11char_traitsIwESaIwEE7replaceEN9__gnu_cxx17__normal_iteratorIPwS2_EES6_jw+0x89):tstring.cpp: undefined reference to `std::char_traits::assign(wchar_t*, unsigned, wchar_t)' > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text$_ZNSbIwSt11char_traitsIwESaIwEE4_Rep8_M_cloneERKS1_j+0x6f):tstring.cpp: undefined reference to `std::char_traits::copy(wchar_t*, wchar_t const*, unsigned)' > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text$_ZNSbIwSt11char_traitsIwESaIwEE12_S_constructIPKwEEPwT_S7_RKS1_St20forward_iterator_tag+0x4a):tstring.cpp: undefined reference to `std::char_traits::copy(wchar_t*, wchar_t const*, unsigned)' > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text$_ZNSbIwSt11char_traitsIwESaIwEE9_M_mutateEjjj+0xed):tstring.cpp: undefined reference to `std::char_traits::copy(wchar_t*, wchar_t const*, unsigned)' > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text$_ZNSbIwSt11char_traitsIwESaIwEE9_M_mutateEjjj+0x114):tstring.cpp: undefined reference to `std::char_traits::copy(wchar_t*, wchar_t const*, unsigned)' > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text$_ZNSbIwSt11char_traitsIwESaIwEE9_M_mutateEjjj+0x161):tstring.cpp: undefined reference to `std::char_traits::move(wchar_t*, wchar_t const*, unsigned)' > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text$_ZNSbIwSt11char_traitsIwESaIwEE12_S_constructIN9__gnu_cxx17__normal_iteratorIPwS2_EEEES6_T_S8_RKS1_St20forward_iterator_tag+0x73):tstring.cpp: undefined reference to `std::char_traits::copy(wchar_t*, wchar_t const*, unsigned)' > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text$_ZNSbIwSt11char_traitsIwESaIwEE15_M_replace_safeIN9__gnu_cxx17__normal_iteratorIPwS2_EEEERS2_S7_S7_T_S9_+0x79):tstring.cpp: undefined reference to `std::char_traits::copy(wchar_t*, wchar_t const*, unsigned)' > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text$_ZNSbIwSt11char_traitsIwESaIwEE12_S_constructIN9__gnu_cxx17__normal_iteratorIPKwS2_EEEEPwT_SA_RKS1_St20forward_iterator_tag+0x73):tstring.cpp: undefined reference to `std::char_traits::copy(wchar_t*, wchar_t const*, unsigned)' > ./toolkit/.libs/libtoolkit.a(tstring.o)(.text$_ZNSbIwSt11char_traitsIwESaIwEE15_M_replace_safeIPKwEERS2_N9__gnu_cxx17__normal_iteratorIPwS2_EESA_T_SB_+0x79):tstring.cpp: undefined reference to `std::char_traits::copy(wchar_t*, wchar_t const*, unsigned)' > collect2: ld returned 1 exit status > > This is certainly a bummer :( I saw some emails on mailing lists that > discussed this problem, but I did not notice a conclusive solution. A > message on the GCC ML said that newlib had no UTF-8 support. So, is this > true? Is there a workaround that I can use? > > Please CC me on replies, I'm not subscribed. Thanks! > > P.S. Elfyn have you implemented {base,dir}name() [1] yet? ;) > > [1] http://www.cygwin.com/ml/cygwin/2003-05/msg00010.html > -- > Joshua Kwan -- A great empire, like a great cake, is most easily diminished at the edges. -- B. Franklin -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/