<div dir="ltr">Yes, you got it!!<br><br>I was doing include_directories(SYSTEM ....)<br><br>Thanks very much.<br><br>Neil<br><br><div class="gmail_quote">2008/7/21 Bill Hoffman <<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Neil Girdhar wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi again Bill,<br>
<br>
I ran "make >a.txt 2>b.txt" and attached the output.<br>
<br>
</blockquote>
<br></div>
I think I see the problem. You have to figure out where the -isystem is coming from. Your compile line looks like this:<br>
<br>
[ 1%] Building CXX object ui/CMakeFiles/ui.dir/frame.cc.o<br>
cd /Users/wizard/Desktop/nn/src/ui && /usr/bin/c++ -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_DLL -isystem /opt/local/include/qt4-mac -isystem /opt/local/include/qt4-mac/QtGui -isystem /opt/local/include/qt4-mac/QtCore -isystem /opt/local/include -isystem /opt/local/include/qt4-mac/phonon -isystem /opt/local/include/qt4-mac/QtXmlPatterns -isystem /opt/local/include/qt4-mac/QtWebKit -isystem<br>
<br>
<br>
CMake does not add that by default to any project, so it must be in your projects CMakeLists.txt files somewhere. This causes the mac to turn c++ header files into C files I think...<br>
<br>
To test the theory, you could copy the compile line in your b.txt file and remove the -isystem stuff by hand, or you could figure out where it came from.<br><font color="#888888">
<br>
-Bill<br>
</font></blockquote></div><br></div>