It's not the first time I got this problem and it's probably not going to be the last because I keep forgetting about it for some reason, so I thought I posted about it here because it might help me remember and who knows maybe help someone else someday.
Anyway if you ever find yourself trying to use gcc to compile some file and you get two pages full of errors it's probably because you are trying to compile a .cpp .cc or .cxx or any file that doesn't end in a .c apparently.
Wish it would just say: yo wrong compiler, use g++ or whatever