This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: First basic program


Hello guys!

I run my first program using GCC for Linux! the basic but not boring
Hello World! hehehe

I create a file with VI editor and I wrote the code
and to compile I use "gcc HelloWorld.c"

to messages was show:

HelloWorld.c: In function `main':
HelloWorld.c:4: warning: return type of `main' is not `int

and the Gcc compiler create a file call "a.out*"

My doubts are:
	First: to declare the main function I must use the type "int"?

	Second: Why GCC create a file call "a.out*"? Why the file call
"HelloWorld*"? How I do that? Its don't generate some intermediate file?

	Third: What the common options I use to compile a program?

	Fourth(and more important): Where I look to see all functions available
by GCC?

I use Mandrake 9.0

my code was that:

#include <stdio.h>

void main(void)
{
	printf("\t\t\t Helllllooo LINUX World!!\n");
}


til next! :)

	Sams


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]