Message Board -  Archive

[ Login ] [ Create Account ]
[ Board List ] [ View Board ] [ Post Reply ]
  Author  Subject: Re: C comlier cannot create executabels
Archive  

Posted on 11-29-2001 02:08 a.m. ET  reply

Original Poster: "Mark W. Krentel" <krentel@dreamscape.com>

> I get that output when I try to comlie programs, have I missed
> installing a pack? or whats the problem? I use slack 8.0

Try compiling the "hello, world" program. Type in the following
program, call it hello.c and run "gcc hello.c".

#include <stdio.h>
int main()
{
printf("Hello, world
");
}

If that doesn't work, try reinstalling the D series (Development).
You don't need to reinstall everything, just run setup and choose the
option to install more packages (be very careful you don't reformat
the partitions). The C compiler is in egcs (or maybe called gcc).
Also install binutils, gmake, glibc, linuxinc and whatever else is
recommended for C programs.

If that still doesn't work, then rerun "gcc hello.c" and cut and paste
the output and post it here.

P.S. "Compile" is spelled with a "p" (and executable is l-e).

--Mark

< Previous 1 Next >

Site Contents