<html><head></head><body>Are you missing -stdc=c11 ?<br><br><div class="gmail_quote"><br>
Maxim Bublis <b@codemonkey.ru> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im"><span style="color:rgb(34,34,34)">Well, I'm not quite sure how it is possible for the standard C and C++</span><br /></div>
libraries to disagree on static_assert() (and all the while the C and C++<br />
compilers agree on _Static_assert()...). But I cannot blame you for being<br />
pedantic.<br /></blockquote><div><br /></div><div>Suddenly clang and clang++ is a such pair of compilers (both shipped with XCode 5.0.2).</div><div><br /></div><div>Clang:</div><div><br /></div><div><div>$ cat test.c</div><div>#include <assert.h></div>
<div>int main() {</div><div>    static_assert(1, "This shouldn't happen");</div><div>    return 0;</div><div>}</div></div><div><br /></div><div><div>$ clang test.c</div><div>test.c:3:5: warning: implicit declaration of function 'static_assert' is invalid in C99 [-Wimplicit-function-declaration]</div>
<div>    static_assert(1, "This shouldn't happen");</div><div>    ^</div><div>1 warning generated.</div><div>Undefined symbols for architecture x86_64:</div><div>  "_static_assert", referenced from:</div>
<div>      _main in test-akB09x.o</div><div>ld: symbol(s) not found for architecture x86_64</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div></div><div><br /></div><div>Clang++:</div>
<div><br /></div><div><div>$ cat test.cc</div><div>#include <cassert></div><div>int main() {</div><div>    static_assert(1, "This shouldn't happen");</div><div>    return 0;</div><div>}</div><div>$ clang++ test.cc</div>
<div>$ echo $?</div><div>0</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
However, please use configure caching when writing compiler tests.
</blockquote></div><div class="gmail_extra"><br /></div>I'll resubmit patch with configure caching in a few minutes.<br /><br clear="all" /><div><br /></div>-- <br />Maxim Bublis
</div></div>
<p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />vlc-devel mailing list<br />To unsubscribe or modify your subscription options:<br /><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br /></pre></blockquote></div><br>
-- <br>
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.</body></html>