04-20-2024, 09:06 PM
(This post was last modified: 04-20-2024, 09:06 PM by Kernelpanic.)
@JRace, the problem ultimately lies in the fact that you absolutely want to use QB64's GCC. (The program for deleting it is yours, right? And that's well!)
Bat files cannot be used meaningfully if they are not in the path. I've known this since 1995, when I was still programming with QuickC, and more (I have all QuickC versions with manual 1.0, 2.0, 2.5 the last one). Back then you had to write this into the autoexec.bat for it to work. The compiler options for the Quickc compiler were also in there. So that you can access it from any directory.
The most practical use is to include the GCC in the path, and if you want to make it easier you can create a bat file with: -o -Wall. This should apply to the vast majority of all files. For the rest, just enter it directly.
That was my autoexec.bat file. The instructions for the QuickC compiler were set so that I only had to call it on the command line with a bat file (the reason for this was that many programs were 1/3 smaller than when compiled in the QuickC IDE became.):
The autoexec.bat
Bat files cannot be used meaningfully if they are not in the path. I've known this since 1995, when I was still programming with QuickC, and more (I have all QuickC versions with manual 1.0, 2.0, 2.5 the last one). Back then you had to write this into the autoexec.bat for it to work. The compiler options for the Quickc compiler were also in there. So that you can access it from any directory.
The most practical use is to include the GCC in the path, and if you want to make it easier you can create a bat file with: -o -Wall. This should apply to the vast majority of all files. For the rest, just enter it directly.
That was my autoexec.bat file. The instructions for the QuickC compiler were set so that I only had to call it on the command line with a bat file (the reason for this was that many programs were 1/3 smaller than when compiled in the QuickC IDE became.):
Code: (Select All)
echo off
cls
qcl %1.c
The autoexec.bat
Code: (Select All)
@ECHO OFF
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;G:\;C:\DOS;C:\SDK-JAVA20\BIN;C:\;E:\MSVC\BIN;F:\;F:\CURRE!;F:\QC25\BIN;F:\QB4;F:\COBOL;F:\WP51;F:\DBASE;F:\MASM51
VERIFY ON
PROMPT $e[s$e[1;67H$e[1;32m$e[2;67H$t$h$h$h$e[u$e[1;31;40m$p$g$e[1;33;44m
Rem ---------------------- MTM ATAPI CD-ROM ----------------------
Rem - By Windows Setup - LH /L:1,36224 C:\WINDOWS\COMMAND\MSCDEX.EXE /D:MTMIDE01 /M:10
Rem ---------------------- MTM ATAPI CD-ROM ----------------------
LH /L:1,7792 C:\DOS\NLSFUNCÂ C:\DOS\COUNTRY.SYS
C:\DOS\MODE CON CP PREP=((850)C:\DOS\EGA.CPI)
C:\DOS\MODE LPT1 CP PREP=((850)C:\DOS\5202.CPI)
CHCP 850
LH /L:1,17184 C:\DOS\KEYB GR ,, C:\DOS\KEYBOARD.SYS
C:\DOS\mouse.COM /Y
Rem . . .
SET LIB=F:\QC25\LIB;F:\QB4
SET INCLUDE=F:\QC25\INCLUDE
SET LINK=F:\QC25\BIN\QLINK /CO /NOI /LI
Rem INC /PADC /PADD
SET CL=/FPi87 /AM /G2 /Bd /Zi /Zd /Ox
SET MASM=/C /V /Z /ZI
SET TMP=C:\TEMP
SET TEMP=C:\TEMP
CLS