Results 1 to 2 of 2
I have some c code I'm trying to compile. I installed gcc, and the gmp lib, but I seem to be having some problems. I don't program in c myself, ...
- 09-22-2007 #1Just Joined!
- Join Date
- Dec 2004
- Location
- localhost
- Posts
- 56
Using gcc?
I have some c code I'm trying to compile. I installed gcc, and the gmp lib, but I seem to be having some problems. I don't program in c myself, so I really don't know what any of this means.
Code:chris@debian:~$ gcc pi.c -lm -lgmp -O3 pi.c:1:19: error: stdio.h: No such file or directory pi.c:2:18: error: math.h: No such file or directory pi.c:3:17: error: gmp.h: No such file or directory pi.c: In function âmainâ: pi.c:9: warning: incompatible implicit declaration of built-in function âscanfâ pi.c:11: warning: incompatible implicit declaration of built-in function âlogâ pi.c:15: error: âmpf_tâ undeclared (first use in this function) pi.c:15: error: (Each undeclared identifier is reported only once pi.c:15: error: for each function it appears in.) pi.c:15: error: expected â;â before âaâ pi.c:17: error: âaâ undeclared (first use in this function) pi.c:18: error: âyâ undeclared (first use in this function) pi.c:55: error: âstdoutâ undeclared (first use in this function) pi.c:57: warning: incompatible implicit declaration of built-in function âprintfâ
- 09-22-2007 #2
do you have all the essential packages installed or they may not ben configured properly
if you aren't sure of having essential packages on your system do this
Code:sudo apt-get install build-essential
life is the greatest opportunity that the nature had given you


Reply With Quote
