I know that there are lots of threads on gcc, particularly \"command gcc failed with exit status 1\", and I\'ve looked at them all and still have not been able to fix this.
I was having this issue in cygwin until I realised that the gcc-g++ package needed to be installed also. Now that I have both gcc-core and gcc-g++ installed, pip install pandas works like a charm.