Our C tests are written in C++ (using GTest). We should compile them directly with g++ instead of gcc.
The compiler will be chosen by the file ending. But it seems like there is a difference between which compile flags are reused. The easiest way is using g++.
Our C tests are written in C++ (using GTest). We should compile them directly with
g++
instead ofgcc
.The compiler will be chosen by the file ending. But it seems like there is a difference between which compile flags are reused. The easiest way is using
g++
.See: https://stackoverflow.com/questions/3178342/compiling-a-c-program-with-gcc