Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #65263

Re: Compiler utility

From root <NoEMail@home.org>
Newsgroups comp.os.linux.misc
Subject Re: Compiler utility
Date 2025-02-07 22:19 +0000
Organization Linux Advocacy
Message-ID <vo60u8$3mapm$1@dont-email.me> (permalink)
References <vo3u4t$37omt$1@dont-email.me> <wwvcyfujgcz.fsf@LkoBDZeT.terraraq.uk> <vo5h2s$3jith$2@dont-email.me> <wwvjza1zf0v.fsf@LkoBDZeT.terraraq.uk>

Show all headers | View raw


Richard Kettlewell <invalid@invalid.invalid> wrote:
>
> Post some example code, the exact command you used to compile it, and
> the errors you go.
>

Thanks for the offer Richard. I have moved beyond the problem.
I have what I need with the 11.2.0 compiler and the 6.12.12 kernel.

I think this will give an example of what I found:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termio.h>
#include <sys/wait.h>
#include <signal.h>
#include <time.h>
#include <sys/time.h>
#include <string.h>
#include <ctype.h>

int main();

//lots more code in here

int main(argc,argv)
int argc;
char *argv[];
{
exit(0);
}

The command first command would have been
simply gcc program.c -o program

then I tried stuff like:

gcc --std=gnu89 program.c -o program

The actual program I looked at had used forward
references and I put a large number of the
declarations up front. The new compiler flagged
the redefinitions as errors, not warnings as
might have been done with a duplicate #define.

I can't remember now what program it was, nor
for what compiler I originally used that would
have allowed the forward references.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Find similar


Thread

Compiler utility root <NoEMail@home.org> - 2025-02-07 03:19 +0000
  Re: Compiler utility vallor <vallor@cultnix.org> - 2025-02-07 04:11 +0000
    Re: Compiler utility rbowman <bowman@montana.com> - 2025-02-07 06:05 +0000
    Re: Compiler utility root <NoEMail@home.org> - 2025-02-07 17:35 +0000
      Re: Compiler utility vallor <vallor@cultnix.org> - 2025-02-07 17:51 +0000
      Re: Compiler utility The Natural Philosopher <tnp@invalid.invalid> - 2025-02-07 22:28 +0000
        Re: Compiler utility Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2025-02-07 22:44 +0000
          Re: Compiler utility Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-02-08 03:30 +0000
          Re: Compiler utility The Natural Philosopher <tnp@invalid.invalid> - 2025-02-08 13:12 +0000
        Re: Compiler utility root <NoEMail@home.org> - 2025-02-09 04:51 +0000
  Re: Compiler utility Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-02-07 06:02 +0000
    Re: Compiler utility "WokieSux282@ud0s4.net" <WokieSux283@ud0s4.net> - 2025-02-07 01:06 -0500
  Re: Compiler utility Richard Kettlewell <invalid@invalid.invalid> - 2025-02-07 08:42 +0000
    Re: Compiler utility root <NoEMail@home.org> - 2025-02-07 17:49 +0000
      Re: Compiler utility Richard Kettlewell <invalid@invalid.invalid> - 2025-02-07 20:16 +0000
        Re: Compiler utility root <NoEMail@home.org> - 2025-02-07 22:19 +0000

csiph-web