string::pop_back: Build error in DevC++
Hi,
I'm trying use this hint http://stackoverflow.com/questions/9...-in-a-txt-file for delete last character from a text file, but this not compile. I'm get this error => http://prntscr.com/46149j ; based in this document http://www.cplusplus.com/reference/s...ring/pop_back/ , I'm don't do nothing wrong.
Some hint or solution?
Thank in advance.
Re: string::pop_back: Build error in DevC++
DevC++ is not a compiler, it is an IDE. The compiler that comes with DevC++ is an old version of g++ that does not support string::pop_back. So the solution is to get a more modern compiler (g++ 4.x) and an up to date IDE such as CodeBlocks.
Also, your question has nothing to do with the topic of this forum, the Windows API. It is a generic C++ question.
Regards,
Paul McKenzie
Re: string::pop_back: Build error in DevC++
Quote:
Originally Posted by
Paul McKenzie
DevC++ is not a compiler, it is an IDE. The compiler that comes with DevC++ is an old version of g++ that does not support string::pop_back. So the solution is to get a more modern compiler (g++ 4.x) and an up to date IDE such as CodeBlocks.
Also, your question has nothing to do with the topic of this forum, the Windows API. It is a generic C++ question.
Regards,
Paul McKenzie
OK @Paul McKenzie, thank you for your answer/help, and sorry for create thread on wrong area.
Re: string::pop_back: Build error in DevC++