Skip to content

Getting started

FreeBASIC-NG retains the fbc compiler executable. Download a host archive from the release page, extract it, and add its bin directory to your PATH.

Terminal window
fbc --version
fbc hello.bas

For a source build, use CMake 3.20 or newer and a C compiler:

Terminal window
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build
./build/src/compiler/fbc --version

The default bootstrap comes from the versioned generated-C sources in the repository. -DFB_USE_SYSTEM_FBC=ON is an explicit opt-in for a local compiler.