2011/1/7 Kai Tietz <[email protected]>: > 2011/1/7 ArbolOne <[email protected]>: >> Glib::ustring s("C/C++"); >> std::locale loc; >> .... >> for (Glib::ustring::iterator it=s.begin(); it!=s.end(); ++it) { >> if (std::isalpha(*it,loc)) // <<<=== Here is the problem !! >> { >> std::cout << "it is alpha" << std::endl; >> } >> I am having serious problem trying to get this code to work. GDB reports >> the following: >> 63 ../../../../../src/gcc-4.5.1/libstdc++-v3/libsupc++/eh_throw.cc: >> No such file or directory. >> Catchpoint 1 (exception thrown), __cxa_throw (obj=0x2f9d00, >> tinfo=0x4acd20, dest=0x491430 <~bad_cast>) at >> ../../../../../src/gcc-4.5.1/libstdc++-v3/libsupc++/eh_throw.cc:63 >> in ../../../../../src/gcc-4.5.1/libstdc++-v3/libsupc++/eh_throw.cc >> >> AFAIK the code is correct, yet there is a problem with 'eh_throw.cc', >> any body? >> >> ------------------------------------------------------------------------------ >> Gaining the trust of online customers is vital for the success of any company >> that requires sensitive data to be transmitted over the Web. Learn how to >> best implement a security strategy that keeps consumers' information secure >> and instills the confidence they need to proceed with transactions. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Mingw-w64-public mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public >> > > Hmm, what gcc version you are using? Btw shouldn't loc be initialized > by something? > > Regards, > Kai >
Ah, I see. You are using 4.5.1 gcc version. I'll check your test with newer gcc version, if you could provide (best as packed attachment) me a preprocessed source file. Is this code known to work with earlier gcc versions? Regards, Kai ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
