-
July 24th, 2014, 06:05 PM
#1
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.
-
July 24th, 2014, 09:55 PM
#2
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
-
July 24th, 2014, 10:23 PM
#3
Re: string::pop_back: Build error in DevC++
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: op_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.
-
July 27th, 2014, 07:17 AM
#4
Re: string::pop_back: Build error in DevC++
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|