title: Compiling C and C++ files together using GCC
body: <p>I'm trying to compile C and C++ sources together using GCC.</p>
  
  <p><code>gcc -std=c++0x test.cpp -std=c99 test.c -lstdc++</code></p>
  
  <p>Now, this works fine, except that I get two warnings.</p>
  
  <pre><code>cc1plus: warning: command line option "-std=c99" is valid for C/ObjC but not for C++
  cc1: warning: command line option "-std=c++0x" is valid for C++/ObjC++ but not for C
  </code></pre>
  
  <p>Therefore I can't use <code>-Werror</code> with this setup. Can these warnings be suppressed somehow?</p>