Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved] precompiled header / MacOS / Qt Creator / C++11
Forum Updated to NodeBB v4.3 + New Features

[solved] precompiled header / MacOS / Qt Creator / C++11

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.1k 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.
  • N Offline
    N Offline
    neurocod
    wrote on last edited by
    #1

    In pro file:
    PRECOMPILED_HEADER = pch.h

    • moc files are created without pch.h, so get compile error on them.
      When additionally specifying:
      CONFIG += precompile_header
    • then C++11 is disabled, and get error even before moc files compilation. Also tried
      CONFIG += c++11 c++0x
      QMAKE_CXXFLAGS += -std=gnu++0x
      QMAKE_CXXFLAGS += -std=c++0x

    How to add precompiled headers with C++11? Is it because of compiler output contains -mmacosx-version-min=10.7 ? So spaghetti options and side effects...

    1 Reply Last reply
    0
    • N Offline
      N Offline
      neurocod
      wrote on last edited by
      #2

      Solved - switched back to XCode.

      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