I downloaded gcc and gmake, but when I compile the program, it says "stdio.h
c*t
2 楼
gcc -I directory As for the directory, you can check /usr/include, /usr/local/include and see if the files you needed are there.
any
【在 p****m 的大作中提到】 : I downloaded gcc and gmake, but when I compile the program, it says "stdio.h
p*m
3 楼
Thanks, the problem is that I didn't unpack the whole thing, but now the new problem appears, it says "/var/tmp//ccaRSDw8.s:1089:Unknown pseudo-op: . subsections_via_symbols", I don't know what this means.
c*t
4 楼
You need to tell gcc the system include directory location.
【在 p****m 的大作中提到】 : Thanks, the problem is that I didn't unpack the whole thing, but now the new : problem appears, it says "/var/tmp//ccaRSDw8.s:1089:Unknown pseudo-op: . : subsections_via_symbols", I don't know what this means.
p*m
5 楼
would you explain it in more details, how to configure gcc and is there any flag I can put on when I run gcc? and usually, where can I find these h files? Thanks
【在 c*****t 的大作中提到】 : You need to tell gcc the system include directory location.
c*t
6 楼
You need to tell gcc the system include directory location.
【在 p****m 的大作中提到】 : would you explain it in more details, how to configure gcc and is there any : flag I can put on when I run gcc? and usually, where can I find these h : files? Thanks
p*m
7 楼
can't find stdio.h in these two directories. do I have to copy from other sources?
T*r
8 楼
you should download xcode from apple's website. it will give you everything you want.
.h
【在 p****m 的大作中提到】 : I downloaded gcc and gmake, but when I compile the program, it says "stdio.h
p*m
9 楼
Thanks, the problem is that I didn't unpack the whole thing, but now the new problem appears, it says "/var/tmp//ccaRSDw8.s:1089:Unknown pseudo-op: . subsections_via_symbols", I don't know what this means.
p*m
10 楼
my fault, I meant when I gmake another c program, it showed this error.
【在 c*****t 的大作中提到】 : You need to tell gcc the system include directory location.