If you are compiling a program like the following: #include <stdio.h>
int main() { printf("Hello Linux Adicts"); } It will send you the error because you are declaring that the main will return and int and you are not returning anythig so the correct program should be: #include <stdio.h> int main(){ printf("Hello Linux Adicts"); return 0; //or 1 whichever you prefer. } You must not receive the warning. On Thu, 9 Sep 2004 12:19:08 -0600, Wesley J Landaker wrote: > > On Thursday, 09 September 2004 11:55, Paul Akkermans > wrote: > > Hi everyone, > > > > I am trying to compile the following program. But > from the output I > > get the feeling that not all links are made. I > believe this is due to > > the fact that not all libraries are included during > the compilation. > > [ ... ] > > > debian:/home/paul/softwarecon# gcc test.c > > test.c: In function `main': > > test.c:26: warning: return type of `main' is not `int' > > Try: > > $ gcc test.c -L/usr/X11R6/lib -lX11 -lXt -lXaw > > -- > Wesley J. Landaker <[EMAIL PROTECTED]> > OpenPGP FP: 4135 2A3B 4726 ACC5 9094 0097 F0A9 8A4C > 4CD6 E3D2 Ing. Sergio Basurto Juárez Tel: 04455-85322945 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]