<div class="gmail_quote">On 4 May 2012 08:19, Csaba Raduly <span dir="ltr"><<a href="mailto:rcsaba@gmail.com" target="_blank">rcsaba@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
make CXXFLAGS=-v<br>
<br>
This will pass the -v flag to clang, causing it to print the<br>
directories where headers are searched, among other things. Perhaps<br>
this will help understand why the compiler doesn't find sys/types.h (I<br>
suspect this option: -isysroot /Developer/SDKs/MacOSX10.6.sdk).</blockquote><div><br></div><div>That is actually very good hint :)</div><div><br></div><div>Here is full output: <a href="http://pastebin.com/HhVEVLTG">http://pastebin.com/HhVEVLTG</a></div>
<div><br></div><div>Most important parts:</div><div><div>#include "..." search starts here:</div><div>#include <...> search starts here:</div><div> .</div><div> deps/</div><div> deps/http-parser</div><div>
deps/json_spirit</div><div> /usr/bin/../lib/clang/3.1/include</div><div>End of search list.</div><div>In file included from deps/http-parser/http_parser.c:21:</div><div>deps/http-parser/http_parser.h:28:10: fatal error: 'sys/types.h' file not found</div>
<div>#include <sys/types.h></div></div><div><br></div><div>***</div><div><br></div><div><a href="https://www.google.com/search?q=makefile+include+path">https://www.google.com/search?q=makefile+include+path</a></div>
<div><br></div><div>I haven't used makefiles for a while - can you help me solving this "puzzle"? :)</div><div><br></div><div>Thanks</div><div>Michal</div></div>