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
Compile the files separately, link with g++
gcc -c -std=c99 -o file1.o file1.c g++ -c -std=c++0x -o file2.o file2.cpp g++ -o myapp file1.o file2.o