Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #65241
| From | vallor <vallor@cultnix.org> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: Compiler utility |
| Date | 2025-02-07 04:11 +0000 |
| Message-ID | <m0lfelFquhsU4@mid.individual.net> (permalink) |
| References | <vo3u4t$37omt$1@dont-email.me> |
On Fri, 7 Feb 2025 03:19:58 -0000 (UTC), root <NoEMail@home.org> wrote in <vo3u4t$37omt$1@dont-email.me>: > The latest gcc compiler is 14.2, or something like that. > I have used prior versions 11.2 and 12.2 which allow C code that does > not always type routines, such as int main() > > Since the original compiler, it was understood that the default for a > routine is type int, so that a compiler would accept > > main() > > and, although it might give a nuisance warning the program would compile > and run. > > The latest gcc seems to require every routine to be typed. As of the > current time, I have 1,046,000 lines of C code written over the last 45 > years or so, and much of it was written according to K&R. > > Does anyone know of a compiler add-on which will read existing code, and > insert type (int) when the routine is not explicitly given? > > > Thanks. You can probably get the code to compile with the proper "--std=" directive to gcc. -- -v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti OS: Linux 6.13.1 Release: Mint 22.1 Mem: 258G "If things get any worse, I'll have to ask you to stop helping me."
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar
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