This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Help in compiling code
- To: NARobertson at scs dot dera dot gov dot uk, bug-gcc at gnu dot org
- Subject: Re: Help in compiling code
- From: Mike Stump <mrs at windriver dot com>
- Date: Mon, 19 Jun 2000 16:04:04 -0700 (PDT)
> From: Noel Robertson <NARobertson@scs.dera.gov.uk>
> To: "'bug-gcc@gnu.org'" <bug-gcc@gnu.org>
> Date: Mon, 19 Jun 2000 11:39:12 +0100
> > I am having problems trying to re-compile and link, using GCC 2.8.1
2.8.1 is old, I recommend upgrading.
> > Am I missing one the libraries in gcc?
No. You just have never created a C program before. There are
books/classes and other resources available. This isn't a bug in the
compiler. Also, this is the wrong list to have someone teach you
programming. comp.lang.c would be better, see www.dejanews.com. Do
you have any friends that know how to program? If so, you might ask
them. If you don't have any, maybe a course at a local college would
work.
If you can learn by example, you might grab some free software, and
check it out. The answer to your specific question can be found in
any software that contains at least one program in C. Many such
examples exist on the net.
If you want a subtle hint, though, I hate to do it, the first
canonical C program you will ever see, is always:
int main() {
printf("Hello World!\n");
return 0;
}
try compiling that one up, and seeing how it differs from your
program.