Unfortunately I don't currently have a 14.04 installation so I don't know which versions of gcc are available to you. I am using the package "gcc-5" from the Xenial (16.04) repositories and it is working. You may also want to check:
1. "which gcc"
a. Make sure this points to the version of gcc that you expect.
b. '/usr/bin/gcc'
2. "gcc --version"
Unfortunately I don't currently have a 14.04 installation so I don't know which versions of gcc are available to you. I am using the package "gcc-5" from the Xenial (16.04) repositories and it is working. You may also want to check:
1. "which gcc"
a. Make sure this points to the version of gcc that you expect.
b. '/usr/bin/gcc'
2. "gcc --version"