Re: hello.c error



anganthia (angantia@xxxxxxxxx) writes:
hey guys i am newbie and am trying to compile the famous helloworld
program and i am using the following hello.c file and the make file
also i have given and i am getting the following errors i am trying
from one week pls help

You have a bigger problem. You've posted the same message three times,
hours apart. That's bad enough. But after the first one or two, you
did get a response, yet you either haven't seen it, or haven't looked.
You have also posted that question three times in a newsgroup that
is about computer hardware, more specifically about computer hardware
as it relates to the Linux operating system. This is a programming
question, and has nothing to do with hardware. And it's not even
really a Linux related question, since C is a portable language.

You might want to fix that problem first.

One should point out that the point of "hello world" is to show a
C program that is basically as simple as possible, so you can have
immediate success and you will become familiar with the absolute
minimum required for a C program.

Anything more complicated is no longer "hello world". You should
be starting with that simple program, and get it right first (obvious
beginner errors would be mistyping keywords or not having enough
brackets). Then you build on that, adding small things at a time,
and compiling. Then if there are error messages, you can move back and
figure out what went wrong. C can generate quite a few error
messages, and some of them can be cryptic. The more you change
at a time, the harder it is for you to determine what you've done
to cause the error messages.

This is nothing but a learning exercise. Once you've learned from
it, then you are in a better position to deal with actually making
decent programs in the language. You'll have worked out some of
the connection between errors in the source code and those error
messages, so you'll be in a better position to deal with more
complicated programs (and the error messages that are generated
when you make a mistake).

Michael
.