Makefile's generally hate spaces in filenames, and it's largely impossible to make them work. Due to that, with the change to use a `Makefile` the `EXE=` parameter did not work with spaces, and programs such as "foo bar.bas" would not compile because it produces "foo bar.exe" which has a space in the name. There were options here, but in this very specific case it is actually possible to allow the Makefile to work with spaces. `EXE` is only a single filename, so as long as we always quote it correctly and the provided `EXE=` parameter escapes the spaces with `\` then it will work. Thus, we modified the Makefile to always do the quoting, and modified QB64 to automatically escape the spaces in the executable name provided to the Makefile. I also modified the `compile_tests` to test that spaces in filenames and paths of the executable correctly compile. Fixes: #80 |
||
---|---|---|
.ci | ||
.github/workflows | ||
internal | ||
licenses | ||
source | ||
tests | ||
.clang-format | ||
.gitignore | ||
CHANGELOG.md | ||
COPYING.txt | ||
Makefile | ||
qb64.1 | ||
README.md | ||
SAMPLES.txt | ||
setup_lnx.sh | ||
setup_osx.command | ||
setup_win.bat |
QB64
QB64 is a modern extended BASIC+OpenGL language that retains QB4.5/QBasic compatibility and compiles native binaries for Windows (XP and up), Linux and macOS.
Table of Contents
Installation
Download the appropriate package for your operating system over at https://github.com/QB64-Phoenix-Edition/QB64pe/releases/tag/v1.0alpha
Windows
Make sure to extract the package contents to a folder with full write permissions (failing to do so may result in IDE or compilation errors).
- It is advisable to to whitelist the QB64 folder in your antivirus/antimalware software *
macOS
Before using QB64 make sure to install the Xcode command line tools with:
xcode-select --install
Run ./setup_osx.command
to compile QB64 for your OS version.
Linux
Compile QB64 with ./setup_lnx.sh
.
Dependencies should be automatically installed. Required packages include OpenGL, ALSA and the GNU C++ Compiler.
Usage
Run the QB64 executable to launch the IDE, which you can use to edit your .BAS files. From there, hit F5 to compile and run your code.
To generate a binary without running it, hit F11.
Additionally, if you do not wish to use the integrated IDE and to only compile your program, you can use the following command-line calls:
qb64 -c yourfile.bas
qb64 -c yourfile.bas -o outputname.exe
Replacing -c
with -x
will compile without opening a separate compiler window.
Additional Information
More about QB64 at our wiki: https://qb64phoenix.com/qb64wiki
We have a community forum at: https://qb64phoenix.com/forum
We don't currently tweet. Sorry.
Find us on Discord: https://discord.gg/8YsAZrN3qb