Skip to content

Latest commit

 

History

History
62 lines (54 loc) · 2.86 KB

GNUCOBOL.md

File metadata and controls

62 lines (54 loc) · 2.86 KB

GnuCOBOL

GnuCOBOL This page presents usage information about GnuCOBOL on a Windows machine.

GnuCOBOL environment

Configuration ot the GnuCOBOL compiler occurs in two ways :

  • through command line options (e.g. option --free) and
  • through the execution environment (see variables below).
set COB_CC=%COB_HOME%\mingw64\bin\gcc.exe
set COB_CFLAGS=-pipe -I%%COB_HOME%\include -Wno-unused -fsigned-char -Wno-pointer-sign
set COB_LIBS=-L "%COB_HOME%\lib" -lcob
set COB_CONFIG_DIR=c%COB_HOME%\config
set COB_COPY_DIR=%COB_HOME%\copy

Note: The environment variable COB_CONFIG_DIR must be set for compiler option -std=cobol2002 in order to find the corresponding configuration file.
GnuCOBOL 3.2 provides the following configuration files :

> echo %COB_CONFIG_DIR%
C:\opt\GnuCOBOL\config
 
> dir /s /b C:\opt\GnuCOBOL\config\*.conf
C:\opt\GnuCOBOL\config\acu-strict.conf
C:\opt\GnuCOBOL\config\acu.conf
C:\opt\GnuCOBOL\config\bs2000-strict.conf
C:\opt\GnuCOBOL\config\bs2000.conf
C:\opt\GnuCOBOL\config\cobol2002.conf
C:\opt\GnuCOBOL\config\cobol2014.conf
C:\opt\GnuCOBOL\config\cobol85.conf
C:\opt\GnuCOBOL\config\default.conf
C:\opt\GnuCOBOL\config\gcos-strict.conf
C:\opt\GnuCOBOL\config\gcos.conf
C:\opt\GnuCOBOL\config\ibm-strict.conf
C:\opt\GnuCOBOL\config\ibm.conf
C:\opt\GnuCOBOL\config\mf-strict.conf
C:\opt\GnuCOBOL\config\mf.conf
C:\opt\GnuCOBOL\config\mvs-strict.conf
C:\opt\GnuCOBOL\config\mvs.conf
C:\opt\GnuCOBOL\config\realia-strict.conf
C:\opt\GnuCOBOL\config\realia.conf
C:\opt\GnuCOBOL\config\rm-strict.conf
C:\opt\GnuCOBOL\config\rm.conf
C:\opt\GnuCOBOL\config\xopen.conf

mics/November 2024