Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. iOS: No member named 'fwprintf' in the global namespace; did you mean 'fprintf'?
QtWS25 Last Chance

iOS: No member named 'fwprintf' in the global namespace; did you mean 'fprintf'?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 3 Posters 2.0k 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.
  • D Offline
    D Offline
    Dilip_Patel
    wrote on last edited by
    #1

    I have c++ port which is compiling with mac desktop but same when i am compiling for ios device or simulator then i got following pictorials errors. I have tried following ways but i did not see any resolved error.
    -->Including path : /usr/include [this default lib path for mac]
    --> adding QMAKE_CXXFLAGS with -std=libstdc++, -std=c++0x
    from following link.
    ([https://stackoverflow.com/questions/12801040/no-member-named-vsnprintf-in-namespace-std-did-you-mean-vsprintf])

    [errors](0_1503387109248_Screen Shot 1939-05-31 at 12.51.53 PM.png)

    Please let me know if i am doing wrong. I am newbie with qt with c++.

    jsulmJ 1 Reply Last reply
    0
    • D Dilip_Patel

      I have c++ port which is compiling with mac desktop but same when i am compiling for ios device or simulator then i got following pictorials errors. I have tried following ways but i did not see any resolved error.
      -->Including path : /usr/include [this default lib path for mac]
      --> adding QMAKE_CXXFLAGS with -std=libstdc++, -std=c++0x
      from following link.
      ([https://stackoverflow.com/questions/12801040/no-member-named-vsnprintf-in-namespace-std-did-you-mean-vsprintf])

      [errors](0_1503387109248_Screen Shot 1939-05-31 at 12.51.53 PM.png)

      Please let me know if i am doing wrong. I am newbie with qt with c++.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Dilip_Patel The correct way to activate C++11 is:

      CONFIG += c++11
      

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Dilip_Patel The correct way to activate C++11 is:

        CONFIG += c++11
        
        D Offline
        D Offline
        Dilip_Patel
        wrote on last edited by
        #3

        @jsulm , thanks i have added config but same errors.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          What version of Qt are you using ? If greater or equal to 5.7, C++11 is a requirement so there should be no need to modify the CXXFLAGS the way you are.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          1
          • SGaistS SGaist

            Hi,

            What version of Qt are you using ? If greater or equal to 5.7, C++11 is a requirement so there should be no need to modify the CXXFLAGS the way you are.

            D Offline
            D Offline
            Dilip_Patel
            wrote on last edited by
            #5

            Hi @SGaist ,
            I am using Qt 5.9 with qt creator 4.3.1. More info i have attached as screen shot.
            And i have c++14 so added in project file as c++14.

            0_1503456438528_Screen Shot 1939-06-01 at 8.16.16 AM.png

            jsulmJ 1 Reply Last reply
            0
            • D Dilip_Patel

              Hi @SGaist ,
              I am using Qt 5.9 with qt creator 4.3.1. More info i have attached as screen shot.
              And i have c++14 so added in project file as c++14.

              0_1503456438528_Screen Shot 1939-06-01 at 8.16.16 AM.png

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Dilip_Patel The screen-shot you attached only says which Qt version was used to build Qt, this doesn't mean you're using same version for your app! QtCreator can handle many different Qt version.
              You should check the Kit you're using to see which Qt version is really used for your project.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              D 1 Reply Last reply
              1
              • jsulmJ jsulm

                @Dilip_Patel The screen-shot you attached only says which Qt version was used to build Qt, this doesn't mean you're using same version for your app! QtCreator can handle many different Qt version.
                You should check the Kit you're using to see which Qt version is really used for your project.

                D Offline
                D Offline
                Dilip_Patel
                wrote on last edited by Dilip_Patel
                #7
                This post is deleted!
                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