Im trying to compile a program through gcc called primes. I have the code for FC6 but im running FC5. The command for FC6 is:
gcc -O primes.cr.c -lgmp -o primes
Whenever I run it I get a error saying:
primes.cr.c:3:16: error: gmp.h: No such file or directory
primes.cr.c: In function main:
primes.cr.c:7: error: mpz_t undeclared (first use in this function)
primes.cr.c:7: error: (Each undeclared identifier is reported only once
primes.cr.c:7: error: for each function it appears in.)
primes.cr.c:7: error: expected ; before n
primes.cr.c:9: error: n undeclared (first use in this function)
primes.cr.c:10: error: st undeclared (first use in this function)
primes.cr.c:11: error: j undeclared (first use in this function)
primes.cr.c:12: error: g undeclared (first use in this function)
primes.cr.c:13: error: k undeclared (first use in this function)
I believe that thats part of the file that gets the error. Although it got downloaded on another computer fine. So the file is not corrupted for the other computer. However the other file is running FC6.
Any suggestions?
Thanks