I wrote a small Hello World app.
#include <stdio.h>
int main(int argc, const char * argv[])
{
printf("Hello World\n");
}
When I run
gcc fileName.c
nothing is returned to the terminal. Can someone tell me what I’m doing wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
gcc is the compiler. it outputs a file called
a.outunless specified otherwise using the-oflag, for examplegcc -o myprogram fileName.cwhich will create an executable called myprogram from the source myFile.c.To run your program write:
./a.outin the terminal