Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Std::to_string() not found in standard library
QtWS25 Last Chance

Std::to_string() not found in standard library

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 5.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    micka33
    wrote on last edited by
    #1

    As you can guess the problem is here -> std::to_string()
    If you download and install the following version [Qt 5.0.1 for Windows 32-bit (MinGW 4.7, 823 MB)]
    you won't be able to compile your project.

    This is apparently a known bug in mingw ("stackoverflow link here":http://stackoverflow.com/questions/12975341/to-string-is-not-a-member-of-std-says-so-g#answer-12975602)

    "here is the given link":http://tehsausage.com/mingw-to-string to the patch, but I can't get it work by doing the changes by myself. My Qt install even got fucked up after I did it (no more compilation possible).

    Could you (Qt) fix it please, Or give an easy work around for this problem ?
    (i'm actually installing the VS2010 version, hope it's working)

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tzander
      wrote on last edited by
      #2

      the forum is not really a place to report bugs. Try the bugtracker.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        micka33
        wrote on last edited by
        #3

        Since this problem is already present on stackoverflow, I assume this bug as already been reported. -(Also i hate the fact that i have to create a new account to post there)-

        Otherwise, by posting this here, i had in mind to get a solution from someone who encountered the same problem.

        Anyone ?

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          This is not a Qt bug. Neither Qt4 nor Qt5. It is an issue of MinGW as it looks. to_string is a fairly "new option":http://en.cppreference.com/w/cpp/string/basic_string/to_string of C++ .

          I would not assume that lots of SW is around using already to_string. If so, they did not use the standard libs only, but also an implementation of the future standard. So, you can use this lib whatever it is.

          If you like to do it with Qt you may have a look to "QString::arg methods.":http://qt-project.org/doc/qt-5.0/qtcore/qstring.html#arg

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved