I\'m trying to include C code into a simple C++ program but I ran into an unexpected problem - when I try to compile the program g++ gives the following error:
/
It works just as expected. Make sure you haven't accidentally compiled sample1.c with g++.
sample1.c
g++