<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qt 5, C++11, and mac?]]></title><description><![CDATA[<p dir="auto">I'm using qmake to build my project. I'm using<br />
Mac 10.7.5<br />
Xcode Version 4.3.3<br />
Qt 5</p>
<p dir="auto">in ".pro"<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/qt">@<bdi>QT</bdi></a>   += core<br />
QT   -= gui</p>
<h1>--------- Project Settings -------------</h1>
<p dir="auto">TEMPLATE      = app<br />
TARGET        = test<br />
CONFIG       -= app_bundle<br />
CONFIG       += console<br />
CONFIG       += c++11    # &lt;----- it doesn't work<br />
SOURCES      += main.cpp@</p>
<p dir="auto">I'm still getting errors. The compiler doesn't know where are the header files for C++11.<br />
Any suggestions?</p>
<hr />
<p dir="auto">In Xcode, I have to do the following settings<br />
Build Options:<br />
Compiler for C/C++/Objective-C         --------------&gt;  Apple LLVM compiler 3.1<br />
Apple LLVM compiler 3.1 - Language:<br />
C++ Language      -------------&gt;  C++11[-std=c++11]<br />
C++ Standard Library    --------------&gt;   libc++ (LLVM C++ standard library with C++11 support)</p>
]]></description><link>https://forum.qt.io/topic/38346/qt-5-c-11-and-mac</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 21:37:30 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/38346.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Feb 2014 03:53:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 10:37:26 GMT]]></title><description><![CDATA[<p dir="auto">C++11 is working in Xcode, but I'm facing problem with the proper settings for qmake project. I've posted the settings in Xcode for c++11</p>
]]></description><link>https://forum.qt.io/post/216416</link><guid isPermaLink="true">https://forum.qt.io/post/216416</guid><dc:creator><![CDATA[CroCo]]></dc:creator><pubDate>Thu, 27 Feb 2014 10:37:26 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 10:34:37 GMT]]></title><description><![CDATA[<p dir="auto">(just edited my prev. post): yeah, I forgot you're on Lion, but as I said, Xcode 4.6.3 is the one you could try...</p>
]]></description><link>https://forum.qt.io/post/216415</link><guid isPermaLink="true">https://forum.qt.io/post/216415</guid><dc:creator><![CDATA[hskoglund]]></dc:creator><pubDate>Thu, 27 Feb 2014 10:34:37 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 10:31:21 GMT]]></title><description><![CDATA[<p dir="auto">And g++ is giving me this erros<br />
cc1plus: error: unrecognized command line option "-stdlib=libc++"<br />
cc1plus: error: unrecognized command line option "-std=c++0x"</p>
]]></description><link>https://forum.qt.io/post/216413</link><guid isPermaLink="true">https://forum.qt.io/post/216413</guid><dc:creator><![CDATA[CroCo]]></dc:creator><pubDate>Thu, 27 Feb 2014 10:31:21 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 10:30:36 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="hskoglund" date="1393496084"]I'm guessing here but I seem to remember, LLVM 3.1 was a bit too old for proper C++11 support, so when LLVM 3.2 came out late 2012, C++11 worked much better in Xcode.</p>
<p dir="auto">Why not trying upgrade your Xcode... it is not so expensive :-)</p>
<p dir="auto">EDIT: since you're on Lion, Xcode 5 is not kosher, instead you can update to Xcode 4.6.3, which comes with LLVM 3.2 as well.[/quote]</p>
<p dir="auto">I can't upgrade Xcode because my mac version &lt; 10.8 (really sad)</p>
]]></description><link>https://forum.qt.io/post/216414</link><guid isPermaLink="true">https://forum.qt.io/post/216414</guid><dc:creator><![CDATA[CroCo]]></dc:creator><pubDate>Thu, 27 Feb 2014 10:30:36 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 10:14:44 GMT]]></title><description><![CDATA[<p dir="auto">I'm guessing here but I seem to remember, LLVM 3.1 was a bit too old for proper C++11 support, so when LLVM 3.2 came out late 2012, C++11 worked much better in Xcode.</p>
<p dir="auto">Why not trying upgrade your Xcode... it is not so expensive :-)</p>
<p dir="auto">EDIT: since you're on Lion, Xcode 5 is not kosher, instead you can update to Xcode 4.6.3, which comes with LLVM 3.2 as well.</p>
]]></description><link>https://forum.qt.io/post/216409</link><guid isPermaLink="true">https://forum.qt.io/post/216409</guid><dc:creator><![CDATA[hskoglund]]></dc:creator><pubDate>Thu, 27 Feb 2014 10:14:44 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 10:06:25 GMT]]></title><description><![CDATA[<p dir="auto">Still not working. :'(</p>
]]></description><link>https://forum.qt.io/post/216406</link><guid isPermaLink="true">https://forum.qt.io/post/216406</guid><dc:creator><![CDATA[CroCo]]></dc:creator><pubDate>Thu, 27 Feb 2014 10:06:25 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 09:58:55 GMT]]></title><description><![CDATA[<p dir="auto">See "here":<a href="http://stackoverflow.com/questions/14749315/clang-under-qtcreator-cant-work-with-c11" target="_blank" rel="noopener noreferrer nofollow ugc">http://stackoverflow.com/questions/14749315/clang-under-qtcreator-cant-work-with-c11</a>.</p>
]]></description><link>https://forum.qt.io/post/216407</link><guid isPermaLink="true">https://forum.qt.io/post/216407</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Thu, 27 Feb 2014 09:58:55 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 09:56:52 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="sierdzio" date="1393494925"]You need to inform Qt that libc++ is used instead of libstdc++.[/quote]</p>
<p dir="auto">How?</p>
]]></description><link>https://forum.qt.io/post/216408</link><guid isPermaLink="true">https://forum.qt.io/post/216408</guid><dc:creator><![CDATA[CroCo]]></dc:creator><pubDate>Thu, 27 Feb 2014 09:56:52 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 09:55:25 GMT]]></title><description><![CDATA[<p dir="auto">You need to inform Qt that libc++ is used instead of libstdc++.</p>
]]></description><link>https://forum.qt.io/post/216405</link><guid isPermaLink="true">https://forum.qt.io/post/216405</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Thu, 27 Feb 2014 09:55:25 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 09:52:59 GMT]]></title><description><![CDATA[<p dir="auto">In Xcode, I have to do the following settings<br />
Build Options:<br />
Compiler for C/C++/Objective-C ———————&gt; Apple LLVM compiler 3.1<br />
Apple LLVM compiler 3.1 – Language:<br />
C++ Language ——————-&gt; C++11[-std=c++11]<br />
C++ Standard Library ———————&gt; libc++ (LLVM C++ standard library with C++11 support)</p>
]]></description><link>https://forum.qt.io/post/216402</link><guid isPermaLink="true">https://forum.qt.io/post/216402</guid><dc:creator><![CDATA[CroCo]]></dc:creator><pubDate>Thu, 27 Feb 2014 09:52:59 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 09:51:42 GMT]]></title><description><![CDATA[<p dir="auto">Still no hope. I'm not using Xcode 5.02, I'm not certain if this is the problem.</p>
]]></description><link>https://forum.qt.io/post/216403</link><guid isPermaLink="true">https://forum.qt.io/post/216403</guid><dc:creator><![CDATA[CroCo]]></dc:creator><pubDate>Thu, 27 Feb 2014 09:51:42 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 09:45:26 GMT]]></title><description><![CDATA[<p dir="auto">Hmmm, I had the same problem last year with Qt 5.1.</p>
<p dir="auto">Since then I've upgraded my project to Qt 5.2.1 and Xcode 5.02 and now I only need that line in my .pro file: (same as yours, works ok)<br />
@config += c++11@</p>
<p dir="auto">Also make sure it is a small c and not a capital C "see my blog post":<a href="http://www.tripleboot.org/?p=101" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.tripleboot.org/?p=101</a></p>
]]></description><link>https://forum.qt.io/post/216400</link><guid isPermaLink="true">https://forum.qt.io/post/216400</guid><dc:creator><![CDATA[hskoglund]]></dc:creator><pubDate>Thu, 27 Feb 2014 09:45:26 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 09:38:20 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="hskoglund" date="1393493638"]Hi, try to add this line to your .pro file:<br />
@MAKE_CXXFLAGS += -std=c++0x -stdlib=libc+@</p>
<p dir="auto">(you need this line if you are using Qt earlier than 5.2)<br />
(also try to update your Xcode to v.5)<br />
[/quote]</p>
<p dir="auto">It doesn't work.</p>
]]></description><link>https://forum.qt.io/post/216397</link><guid isPermaLink="true">https://forum.qt.io/post/216397</guid><dc:creator><![CDATA[CroCo]]></dc:creator><pubDate>Thu, 27 Feb 2014 09:38:20 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 09:33:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi, try to add this line to your .pro file:<br />
@MAKE_CXXFLAGS += -std=c++0x -stdlib=libc+@</p>
<p dir="auto">(you need this line if you are using Qt earlier than 5.2)<br />
(also try to update your Xcode to v.5)</p>
]]></description><link>https://forum.qt.io/post/216394</link><guid isPermaLink="true">https://forum.qt.io/post/216394</guid><dc:creator><![CDATA[hskoglund]]></dc:creator><pubDate>Thu, 27 Feb 2014 09:33:58 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 09:29:35 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="Jeroentje@home" date="1393493243"]Hi,<br />
Maybe post this question in the tools forum instead of the General forum. There they might have an idea.<br />
[/quote]</p>
<p dir="auto">Should I remove it or just post another post?</p>
]]></description><link>https://forum.qt.io/post/216393</link><guid isPermaLink="true">https://forum.qt.io/post/216393</guid><dc:creator><![CDATA[CroCo]]></dc:creator><pubDate>Thu, 27 Feb 2014 09:29:35 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5, C++11, and mac? on Thu, 27 Feb 2014 09:27:23 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Maybe post this question in the tools forum instead of the General forum. There they might have an idea.</p>
]]></description><link>https://forum.qt.io/post/216391</link><guid isPermaLink="true">https://forum.qt.io/post/216391</guid><dc:creator><![CDATA[Jeroentjehome]]></dc:creator><pubDate>Thu, 27 Feb 2014 09:27:23 GMT</pubDate></item></channel></rss>