This MSI package provides a 64-bit version of GnuCobol 3.2 compiled with GCC 13.1 under the MSYS2-UCRT64 environment.
pacman -S mingw-w64-ucrt-x86_64-gcc
)You can check GnuCOBOL is correctly installed by opening
a regular command line (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
.