Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using gcc to compile C file
#19
(04-21-2024, 07:22 PM)Kernelpanic Wrote: @JRace - the autoexec.bat is from 1995! From Windows XP onwards it was no longer necessary. It was still there, but it was empty because the system no longer took it into account.
The autoexec.bat and the config.sys were only relevant for the DOS-based versions of Windows, i.e. until Windows Me.

Which is why my original post never mentioned AUTOEXEC.BAT.  YOU mentioned it in your previous post.  I guess I misunderstood the intent of that post.

I think I misread the intent of that post.  I thought maybe you did not understand how my batch script worked, so I went on to explain how the batch file worked, and that a permanent PATH setting is not needed.

I then listed a batch script from my own Quick C installation which demonstrated that permanent PATH settings are not necessary for compilers, even in DOS.

If a person has just one compiler or is using one particular compiler all day, every day, then a permanent PATH setting can be justified, but my compiler batch scripts follow a "set it, use it, forget it" philosophy that has worked very well for years.


(EDIT: I've tweaked the batch script in my first post and added a few more comments.  Not a @TerryRitchie level of comments, but a few which may be useful.)
Reply


Messages In This Thread
Using gcc to compile C file - by aurel - 04-18-2024, 07:31 PM
RE: Using gcc to compile C file - by a740g - 04-18-2024, 07:37 PM
RE: Using gcc to compile C file - by Kernelpanic - 04-18-2024, 09:18 PM
RE: Using gcc to compile C file - by aurel - 04-19-2024, 06:49 AM
RE: Using gcc to compile C file - by Kernelpanic - 04-19-2024, 08:16 AM
RE: Using gcc to compile C file - by aurel - 04-19-2024, 08:12 AM
RE: Using gcc to compile C file - by Kernelpanic - 04-19-2024, 07:06 PM
RE: Using gcc to compile C file - by aurel - 04-19-2024, 11:47 AM
RE: Using gcc to compile C file - by Kernelpanic - 04-19-2024, 02:00 PM
RE: Using gcc to compile C file - by JRace - 04-20-2024, 12:12 AM
RE: Using gcc to compile C file - by JRace - 04-20-2024, 12:31 AM
RE: Using gcc to compile C file - by bplus - 04-20-2024, 01:27 PM
RE: Using gcc to compile C file - by JRace - 04-20-2024, 03:35 PM
RE: Using gcc to compile C file - by Kernelpanic - 04-20-2024, 07:02 PM
RE: Using gcc to compile C file - by JRace - 04-20-2024, 08:06 PM
RE: Using gcc to compile C file - by Kernelpanic - 04-20-2024, 09:06 PM
RE: Using gcc to compile C file - by JRace - 04-20-2024, 10:11 PM
RE: Using gcc to compile C file - by Kernelpanic - 04-21-2024, 07:22 PM
RE: Using gcc to compile C file - by JRace - 04-21-2024, 07:59 PM
RE: Using gcc to compile C file - by TerryRitchie - 04-22-2024, 02:20 AM
RE: Using gcc to compile C file - by JRace - 04-22-2024, 03:22 PM
RE: Using gcc to compile C file - by aurel - 04-22-2024, 03:41 PM
RE: Using gcc to compile C file - by aurel - 04-22-2024, 03:48 PM



Users browsing this thread: 5 Guest(s)