<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jun 12, 2014, at 4:37 PM, Jonathan Roelofs <<a href="mailto:jonathan@codesourcery.com">jonathan@codesourcery.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br>On 6/12/14, 3:07 PM, Joseph wrote:<br><blockquote type="cite">Hi Dan,<br><br><br>So now that the includes are being found building the tutorial results in 74 warnings and 20 errors. Heres a couple examples:<br><br>In file included from /usr/local/include/llvm/IR/DerivedTypes.h:21:<br>In file included from /usr/local/include/llvm/IR/Type.h:19:<br>In file included from /usr/local/include/llvm/ADT/APFloat.h:20:<br>In file included from /usr/local/include/llvm/ADT/APInt.h:19:<br>In file included from /usr/local/include/llvm/ADT/ArrayRef.h:14:<br>/usr/local/include/llvm/ADT/SmallVector.h:232:20: warning: rvalue references are a C++11 extension [-Wc++11-extensions]<br>   void push_back(T &&Elt) {<br>                    ^<br>/usr/local/include/llvm/ADT/SmallVector.h:476:33: warning: rvalue references are a C++11 extension [-Wc++11-extensions]<br>   iterator insert(iterator I, T &&Elt) {<br><br></blockquote>You need to build Clang/LLVM with a {CXX, CXXFLAGS} pair (read: a c++ compiler for your host) that supports C++11. That can either be one whose default is c++11, or one that doesn't but lets you put '--std=c++11' in the CXXFLAGS.<br><br><a href="http://llvm.org/docs/GettingStarted.html">http://llvm.org/docs/GettingStarted.html</a> suggests GCC >= 4.7.0 for this.<br></blockquote><div><br></div><div>Hello again,</div><div><br></div><div>Running <font face="Menlo"><span style="font-size: 11px;">gcc —version gets me the following results:</span></font></div><div><font face="Menlo"><span style="font-size: 11px;"><br></span></font></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)</div></div></div><div><br></div><div>So it looks like I do not have proper GCC installed, I figured that Xcode would have gcc included.</div><div><br></div><div>I can see that I am in over my head because I do not know what CXX, CXXFLAGS are and where do you apply them? In make?</div><div><br></div><div>In other words what does " put '--std=c++11' in the CXXFLAGS” mean? Do you have an example of what it would look like? or what should I read in order to learn this? I’m happy to read up but I don’t know where to start reading (besides the getting started page on llvm)   :)</div><div><br></div><div>Thank you for your suggestions!</div><div>Joseph Morgan</div><br><div><br></div></body></html>