Qt 6.12 LTS is out! See what's new in the release
blog
[solved] precompiled header / MacOS / Qt Creator / C++11
General and Desktop
2
Posts
1
Posters
1.2k
Views
1
Watching
-
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...
- moc files are created without pch.h, so get compile error on them.