Cython command 'gcc' failed with exit status 1
Trying to use Cython from the Sage Notebook. I put in the following code from Planet Sage:
%cython def sum_cython(long n): cdef long i, s = 0 for i in range(n): s += i return s
However, it fails with this error:
/usr/bin/ld: cannot find -lstdc++ collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1
I have libstdc++ 6 installed, so why is this happening?