CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2014
    Posts
    61

    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.

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    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

  3. #3
    Join Date
    Apr 2014
    Posts
    61

    Re: string::pop_back: Build error in DevC++

    Quote Originally Posted by Paul McKenzie View Post
    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.

  4. #4
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: string::pop_back: Build error in DevC++

    [ redirected thread ]
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

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
  •  





Click Here to Expand Forum to Full Width

Featured