Results 1 to 4 of 4
Hello everyone,
I've tried instralling the c and c++ compilers on my fedora 13 machine and none of them seem to work. For example. i have this extremely simple c ...
- 11-14-2010 #1Just Joined!
- Join Date
- Aug 2010
- Posts
- 8
[SOLVED] cc and gcc compilers don't work
Hello everyone,
I've tried instralling the c and c++ compilers on my fedora 13 machine and none of them seem to work. For example. i have this extremely simple c program that i try to compile and nothing works.
when i typeCode:#include "stdio.h" printf("Hello World");
i get this errorCode:[####localhost Desktop]# cc hello.c
Code:hello.c:3: error: expected declaration specifiers or ‘...’ before string constant hello.c:3: warning: data definition has no type or storage class hello.c:3: error: conflicting types for ‘printf’ hello.c:3: note: a parameter list with an ellipsis can’t match an empty parameter name list declaration
i've tried intalling a group of developers tools using
and nothing......Code:yum groupinstall "Developers Tools"
Any ideas?
- 11-14-2010 #2
try
Code:#include <stdio.h> int main() { printf("hello world\n"); return 0; }
- 11-14-2010 #3Just Joined!
- Join Date
- Aug 2010
- Posts
- 8
Huh......so it was just a programming syntax error.....but what does all that error garbage that it spat out mean?
- 11-15-2010 #4
That's the compiler giving the technical description
of the errors. It's hard to figure out.


