Re: gcc on cygwin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sagar Shah <sagars@xxxxxxxx> writes:

> Hi,
> 
> Thanx for ur reply.
> 
> Lets consider the simple, sample application
> \*****************wstringsample.cc*****************\
> #include <string>
> 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<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>
> >::basic_
> string[in-charge](wchar_t const*, std::allocator<wchar_t> const&)'
> /c/TEMP/ccAgVEAZ.o(.text+0x8d):wstringsample.cc: undefined reference to
> `std::ba
> sic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>
> >::~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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux