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. C++11 and INCLUDE error in iOS
Forum Updated to NodeBB v4.3 + New Features

C++11 and INCLUDE error in iOS

Scheduled Pinned Locked Moved Mobile and Embedded
11 Posts 3 Posters 4.0k Views 1 Watching
  • 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.
  • hskoglundH Offline
    hskoglundH Offline
    hskoglund
    wrote on last edited by
    #2

    I haven't tried an iOS app yet, but I know when you build a C++11 OSX app, you need a small 'c' on the config line, not a capital C, like this
    @CONFIG += c++11@

    Maybe it's the same problem for iOS apps?
    (also see "my blog post":http://www.tripleboot.org/?p=101 about this)

    1 Reply Last reply
    0
    • freddy311082F Offline
      freddy311082F Offline
      freddy311082
      wrote on last edited by
      #3

      Hi hskoglund... thanks for answer...

      and yes bro, you are right, i have:

      @
      INCLUDEPATH += ./euler
      CONFIG += c++11
      @

      the above example I hade made a mistake typing. sorry for that...

      When I compile my app for desktop all is fine, but when I try to compile for iOS device, i get the error number 65...

      any other advices ??

      thanks

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

        Hi,

        IIRC, c++11 is not enabled by default on iOS, you would need to build Qt yourself to use it

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

        1 Reply Last reply
        0
        • freddy311082F Offline
          freddy311082F Offline
          freddy311082
          wrote on last edited by
          #5

          Ty SGaist... for your aclaration !!!

          regards

          1 Reply Last reply
          0
          • hskoglundH Offline
            hskoglundH Offline
            hskoglund
            wrote on last edited by
            #6

            SGaist, might be off topic, but you mean c++11 is not enabled for Qt-flavored iOS apps?
            Because I can use C++11 things like ranged for loops in my "vanilla" iOS (i.e. built with Xcode) apps without problems...

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

              I mean that Qt for iOS looks like not configured to use c++11 (i don't know however if it's intentional or not)

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

              1 Reply Last reply
              0
              • hskoglundH Offline
                hskoglundH Offline
                hskoglund
                wrote on last edited by
                #8

                Ok maybe something for Qt 5.3's wishlist? Anyway, c++11 support is pretty new in Xcode (since Xcode 5.0 I think).

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

                  At least worth to ask on the interest mailing list

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

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

                    If I saw things correctly, the c++11 switch is now enabled (so it should be in for Qt 5.3)

                    If I understood things correctly it was due to the minimum iOS version supported which will now be iOS 5.0

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

                    1 Reply Last reply
                    0
                    • hskoglundH Offline
                      hskoglundH Offline
                      hskoglund
                      wrote on last edited by
                      #11

                      Neat, I should download 5.3 and give it a try.

                      (It's easy to get tired of those longwinded method names in Objective-C, if Qt can give me 100% C++11 in iOS, that could save my fingers a bit of typing pain :-)

                      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