I've searched for an attempted fix for this problem but it seems that people haven't had this problem.
When I try to compile a C program with gcc (Ubuntu 18.04, GCC 7.5.0) I get the error as said in the title but if I use g++ it works just fine. What could be the reason for this?
(Also fairly new to Linux)