These MSI packages provide an “all-in-one” installation for the following products:
Select the appropriate package depending on the type of installation you wish to perform: either a user installation in your local profile (no privileges required), or a machine installation available to all users (requires administration privileges).
The installer updates the PATH
environment variable so that the compiler
(cobc.exe
) can be called without giving its full path. However, if any
terminal remains open during installation, then no terminal (currently
running or newly started) will be made aware of the changes to the PATH
variable untill all terminals are first closed.
You can check GnuCOBOL is correctly installed by opening
a regular terminal (cmd.exe
), and typing:
cobc --info
This should dump GnuCOBOL’s configuration.
You may also try compiling and executing the following “Hello World” program:
IDENTIFICATION DIVISION.
PROGRAM-ID. hello.
PROCEDURE DIVISION.
DISPLAY "Hello World"
STOP RUN.
Compile and run with:
cobc -x hello.cob
hello
This should display Hello World
.
If you need to use a GCC compiler other than the one included in this package,
you can use the tool gc-config
to change the GCC compiler used by GnuCOBOL.
gc-config
tool to make it easier to switch from user configuration to machine coniguration