0

I am using Fedora 14 since last month , i tried to use do C coding on it but unfortunately
compilation command is not working in it although GCC is installed on it.
Need some help!

2
Contributors
3
Replies
5
Views
6 Years
Discussion Span
Last Post by anirudh33
0

hi there

I think you should go through this tutorial and if you still don't get to compile then please tell what command are you issuing and if any error is being displayed.

I may provide you with some general information here:
After you have created your c source file,
Use command-

gcc -Wall source.c -o output

Here "source.c" is the file you have c code written into and "output" is the name of binary which will be generated after successful compilation.
To execute your program command will be-

./output

Anirudh

0

hi there
thats fine, using -Wall shows you warnings so thats good to use.
So can you tell me if you get any error or message while compiling or executing.
If you don't get any error then what exactly happens after you give ./a.out command.

Anirudh

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.