string::pop_back: Build error in DevC++
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

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

  1. #1
    Join Date
    Apr 2014
    Posts
    16

    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,433

    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
    16

    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
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,051

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

    [ redirected thread ]
    Ovidiu Cucu
    "When in Rome, do as Romans do."
    Visit: Microsoft Virtual Academy
    Follow: https://twitter.com/#!/ovidiucucu
    My blog: http://codexpert.ro/blog/author/ovidiu-cucu/

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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center