Subj : Help... I don't understand one compile error... To : borland.public.cppbuilder.language.cpp, borland.public.cpp.borlandcpp From : Checco Date : Fri Feb 27 2004 10:17 pm Hi, I need to adapt a project developped with DEV-C++ with gnu g++, into Borland C++ builder 5.0 but I'm in trouble with one error... The follow code... #include #include #include //-------------------------------------------------------------------------- - #pragma hdrstop //-------------------------------------------------------------------------- - #pragma argsused int main(int argc, char* argv[]) { std::string str = "io non so cosa fare"; str.erase(std::remove(str.begin(), str.end(), ' '), str.end()); std::cout << str << std::endl; system("pause"); return 0; } //-------------------------------------------------------------------------- - works correctelly with GNU g++ 3.2 and reply with: iononsocosafare Premere un tasto per continuare... .... but it doesn't work with Borland c++ Builder 5.0 I recive the follow errors ... [C++ Error] Unit1.cpp(15): E2227 Extra parameter in call to std::remove(const char *) [C++ Error] Unit1.cpp(15): E2285 Could not find a match for '_STL::string::erase(int,char *)' Please help me! Thanks a lot, Checco -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ .