hmm, did you take out all the >> marks?
try this instead
_____
#include <stdio.h>
main ( )
{
printf("Hello World\n");
}
_____
maybe the stdlib.h file is no your machine. I don't know why it wouldn't
work, but this one definitly should work.
Jake
On Fri, 5 May 2000, Steven Hildreth wrote:
> > > -----------
> > >
> > > #include <stdio.h>
> > > #include <stdlib.h>
> > >
> > > voidmain( void )
> > > {
> > > printf("Hello world\n");
> > > }
> > >
> > > ___________
> > >
> > > Just copy that and paste it in a file called yourfilename.c and save it
> in
> > > the vi ( or like ) editor and then compile it by getting to a prompt,
> type
> > > cc yourfilename.c and it will start compiling it. Depending on your
> > > computer, the time may differ, but with small thing it will compile
> > > instantly. It will make a file called a.out, just type a.out and voila,
> > > your first "C" program. I haven't gotten into "C++" very much, I'm still
> > > learning advanced "C". Have fun programming.
>
>
> I also am new to C and I tried this, put it in a file named test.c in my
> home directory and then
> entered this at the prompt (as root) 'cc test.c' and got this result:
>
> '/usr/lib/crt1.o:In function '_start':'
> '/usr/lib/crt1.o(.text.0x18):undefined reference in 'main''
> 'collect2: ld returned 1 exit status'
>
> Does this mean that I dont have all the correct RPM's installed as well?
> Sorry for the basic questions but I have been a VB guy for the last 6 years,
> and know I have been given the challange of developing stuff for Linux
> (Xwindows). Just starting long way to go!
>
> Thanks for anything..
>
> Regards,
> Steven Hildreth
> Information Technology Manager
> Aprotex Corporation, http://www.aprotex.com
> "Proven Property Protection Since 1952"
>
>
>
>
>
> --
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
>
>
Jake McHenry
[EMAIL PROTECTED]
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.