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 To: Sagar Shah Cc: pechtcha AT cs DOT nyu DOT edu, cygwin AT cygwin DOT com, gcc-help AT gcc DOT gnu DOT org Subject: Re: gcc on cygwin References: <006601c34d55$b70d58d0$860410ac AT WAS> From: LLeweLLyn Reese Date: 18 Jul 2003 06:02:34 -0700 In-Reply-To: <006601c34d55$b70d58d0$860410ac@WAS> Message-ID: Lines: 40 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sagar Shah writes: > Hi, > > Thanx for ur reply. > > Lets consider the simple, sample application > \*****************wstringsample.cc*****************\ > #include > using namespace std; > int main() > { > wstring name = L"Sagar Shah"; > return 0; > } > > when compiling with gcc 3.2.3 the following is the output. > $ g++ -o wstringopt wstringsample.cc > /c/TEMP/ccAgVEAZ.o(.text+0x56):wstringsample.cc: undefined reference to > `std::ba > sic_string, std::allocator > >::basic_ > string[in-charge](wchar_t const*, std::allocator const&)' > /c/TEMP/ccAgVEAZ.o(.text+0x8d):wstringsample.cc: undefined reference to > `std::ba > sic_string, std::allocator > >::~basic > _string [in-charge]()' > collect2: ld returned 1 exit status > > Plz help me regarding gcc 3.2.3 with wstring support. > very much thanx in advance. [snip] It looks to me like wstring support was disabled, most likely because of missing c99 wchar functions. If you can, find out the status of the c99 wchar functions in the cygwin c library. -- 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/