-
December 7th, 2001, 04:17 PM
#1
Senior Member
problem compiling c program
With everyone's help I finally got my first linux installation working. I hadn't programmed in c in two years, so anxious to get started. I typed in my starter program in pico.
#include<stdio.h>
void main()
{
printf("hello");
}
I then compiled hello.c:
gcc hello.c
It spewed back an error message, something about main not being int.
What am I doing wrong? Thanks for your help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|