I have a C++ project in which I need to use some external C sources. I need to compile them with the same Tool as the project uses: GCC C++ compiler.
I Visual Studio there is a setting to set this for each C source: C/C++ -> Advanced -> Compile as C++ Code (/TP).
Can I do this with Eclipse CDT ?


int *p = malloc(sizeof *p);is legal C, but not C++.malloc()in both languages, but that wasn't Baum's point. The syntax is legal in one language, but not in the other.