<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Nobody ever had this error?<div>/usr/include/module.map:36:14: error: header 'float.h' not found<br>/usr/include/module.map:81:14: error: header 'stdarg.h' not found<br>/usr/include/module.map:113:14: error: header 'tgmath.h' not found<br><div><br><div>Début du message réexpédié :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>De: </b></span><span style="font-family:'Helvetica';">Lucas Soltic <<a href="mailto:lucas.soltic@orange.fr">lucas.soltic@orange.fr</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>Objet: </b></span><span style="font-family:'Helvetica';"><b>[libclang] module.map errors</b><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>Date: </b></span><span style="font-family:'Helvetica';">28 janvier 2014 12:09:11 UTC+1<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>À: </b></span><span style="font-family:'Helvetica';"><a href="mailto:cfe-users@cs.uiuc.edu">cfe-users@cs.uiuc.edu</a><br></span></div><br><div>Hello,<br><br>I'm using libclang to parse source files, but as soon as the parsed source files include system headers, I get errors with module.map:<br>/usr/include/module.map:36:14: error: header 'float.h' not found<br>/usr/include/module.map:81:14: error: header 'stdarg.h' not found<br>/usr/include/module.map:113:14: error: header 'tgmath.h' not found<br>cl.c:2:10: fatal error: 'clang-c/Index.h' file not found<br><br>I linked against libclang 3.4 and I don't know what to do about this module.map error. I couldn't find any website dealing with this issue.<br>I'm running Mac OS X 10.9.<br><br>The sample program used to generate the error is as follow: (this is also the file parsed by this program)<br>#include <stdio.h><br>#include <clang-c/Index.h><br><br>int main(int argc, const char **argv)<br>{<br><span class="Apple-tab-span" style="white-space:pre"> </span>if (argc < 2) {<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">    </span>printf("Usage: %s file\n", argv[0]);<br><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>return 1;<br><span class="Apple-tab-span" style="white-space:pre"> </span>}<br><span class="Apple-tab-span" style="white-space:pre"> </span><br><span class="Apple-tab-span" style="white-space:pre">  </span>CXIndex index = clang_createIndex(1, 1);<br><span class="Apple-tab-span" style="white-space:pre">  </span><br><span class="Apple-tab-span" style="white-space:pre">  </span>if (index) {<br><span class="Apple-tab-span" style="white-space:pre">      </span><span class="Apple-tab-span" style="white-space:pre">    </span>CXTranslationUnit tu = clang_createTranslationUnitFromSourceFile(index, argv[1], 0, NULL, 0, 0);<br><br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">    </span>if (!tu)<br><span class="Apple-tab-span" style="white-space:pre">  </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>perror("clang_createTranslationUnitFromSourceFile() failure");<br><span class="Apple-tab-span" style="white-space:pre">  </span><span class="Apple-tab-span" style="white-space:pre">    </span><br><span class="Apple-tab-span" style="white-space:pre">  </span><span class="Apple-tab-span" style="white-space:pre">    </span>clang_disposeIndex(index);<br><span class="Apple-tab-span" style="white-space:pre">        </span>} else {<br><span class="Apple-tab-span" style="white-space:pre">  </span><span class="Apple-tab-span" style="white-space:pre">    </span>perror("clang_createIndex() failure");<br><span class="Apple-tab-span" style="white-space:pre">  </span>}<br><span class="Apple-tab-span" style="white-space:pre"> </span><br><span class="Apple-tab-span" style="white-space:pre">  </span>return 0;<br>}<br><br>Any pointer would be greatly appreciated :)<br>Lucas</div></blockquote></div><br></div></body></html>