Reference

gbc3(1)

GAMBAS Compiler

NAME

gbc3 - GAMBAS Compiler

SYNOPSIS

gbc3 [options] [<project directory>]

DESCRIPTION

Gambas is a free development environment based on a Basic interpreter with object extensions, a mix of Java(tm) and Visual Basic(tm). With Gambas, you can quickly design your program GUI with Qt or GTK+, access database systems like MySQL, PostgreSQL, SQlite or ODBC databases, pilot applications with DBus, translate your program into many languages, create GStreamer, OpenGL or SDL applications, and so on...

gbc3 is the compiler that allows you to compile Gambas projects into architecture-independent bytecode.

OPTIONS

-a, --all

compile all

-b, --bytecode-version

force a specific bytecode version

-d, --output-desc

output class description files for the IDE

-e, --translate-errors

display translatable error messages

-F, --form <form file>

convert a form file into code and print it

-g, --debug

add debugging information

-h, --help

display help and exit

-j, --jobs <count>

number of background jobs (default: <number of CPU cores>)

-L, --license

display license

-n, --default-namespace <namespace>

default namespace for exported classes

-p, --two-pass

two-pass compilation to detect more errors

-q --quiet

do not print anything if compilation succeeds

-r, --root <directory>

gives the gambas installation directory

-s, --swap

swap endianness

-t, --translate

output translation files

-v, --verbose

verbose output

-V, --version

display version

-w, --warnings

display warnings

-x, --exec

define the 'Exec' preprocessor constant

COMPILER FLAGS

-f check-prefix

check the prefix of variables if warnings are enable

-f public-module

module symbols are public by default

-f public-control

form controls are public

AVAILABILITY

The Gambas website is at: https://gambaswiki.org/website/

The Gambas source code is available at: https://gitlab.com/gambas/gambas/

The documentation about the language is at: https://gambaswiki.org/wiki

REPORTING BUGS

Report bugs to http://gambaswiki.org/bugtracker

COPYRIGHT

Copyright© Benoît Minisini <[email protected]>;

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

History

--all since Debian 10 (Buster); --bytecode-version since Debian 13 (Trixie); --debug since Debian 11 (Bullseye); --default-namespace since Debian 13 (Trixie); --exec since Debian 10 (Buster); --jobs since Debian 13 (Trixie); --license since Debian 10 (Buster); --output-desc since Debian 13 (Trixie); --quiet since Debian 13 (Trixie); --root since Debian 10 (Buster); --translate since Debian 10 (Buster); --translate-errors since Debian 10 (Buster); --two-pass since Arch Linux 2026-11-01; --warnings since Debian 10 (Buster); -L since Debian 10 (Buster); -a since Debian 10 (Buster); -b since Debian 13 (Trixie); -d since Debian 13 (Trixie); -e since Debian 10 (Buster); -j since Debian 13 (Trixie); -n since Debian 13 (Trixie); -p since Arch Linux 2026-11-01; -q since Debian 13 (Trixie); -r since Debian 10 (Buster); -t since Debian 10 (Buster); -w since Debian 10 (Buster); -x since Debian 10 (Buster).

--class until Debian 9 (Stretch); --public until Debian 9 (Stretch); --public-control until Debian 12 (Bookworm); --public-module until Debian 12 (Bookworm); -c until Debian 9 (Stretch); -debug until Debian 10 (Buster); -m until Debian 12 (Bookworm).