OK. Apparently Linux Mint doesn't automatically install the standard C headers when you install GCC for some reason. It's difficult for me to tell exactly what packages you need since I'm not personally using Linux Mint, but try installing the package "libc6-dev"
or if that doesn't work try "build-essential".
Code:
$ sudo apt install libc6-dev