I'm trying to compile C and C++ sources together using GCC. gcc -std=c++0x test.cpp -std=c99 test.c -lstdc++ Now, this works fine, except that I get two warnings. 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 Therefore I can't use -Werror with this setup. Can these warnings b
![Compiling C and C++ files together using GCC](https://cdn-ak-scissors.b.st-hatena.com/image/square/98d6f053a97a87156775f60757c60865d0f2c47d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded)