Hi there I noticed one person having same kind of troubles 2 weeks ago but i =3D could'nt find a reply.
i'm using the following system : > uname -a CYGWIN_NT-5.0 NAME 1.3.14(0.62/3/2) 2002-10-24 10:48 i686 unknown >g++ --version g++ (GCC) 3.2 20020818 (prerelease) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is = NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR = PURPOSE. trying to compile de simple following code --- start code Blah.cc --- #include <wchar.h> #include <stdio.h> int main(int argc, char**argv) { printf("wcslen: %d\n", wcslen((const wchar_t*)"abcd")); return 0; } --- end code --- I can only manage to get errors : >gcc -o Blah Blah.cc /c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccDaW1wr.o(.text+0x38):Blah.cc: undefined reference to `wcslen(wchar_t const*)' /c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccDaW1wr.o(.eh_frame+0x11):Blah.cc: undefined reference to `___gxx_personality_v0' collect2: ld returned 1 exit status or >g++ -o Blah Blah.cc /c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccjicQ4o.o(.text+0x38):Blah.cc: undefined reference to `wcslen(wchar_t const*)' collect2: ld returned 1 exit status same results on : --- start code Blah.cpp --- #include <cwchar> #include <iostream> int main(int argc, char**argv) { std::cout << "wcslen: " << wcslen((const wchar_t*)"abcd") << =3D std::endl; return 0; } --- end code --- compiled with what libraries/flag am i missing for this piece of code to compile ? Thanks in advance Xavier -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/