Looks like you build under MSYS2, correct? in This case the MSYS2 suggested way to build a package is to use write a PKGBUILD and use pacman. Otherwise you may need to export some variables - I actually didn't check.
For building problems
There is actually an MSYS2 official PKGBUILD file for GnuCOBOL which you can use and adjust as needed - but for GnuCOBOL 3.1.2 that wouldn't even be necessary - as it is officially packaged. pacman -S mingw-w64-i686-gnucobol should install it.
Last edit: Simon Sobisch 2022-09-20
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anyone, Help me?
Last edit: Simon Sobisch 2022-02-26
Sorry, Help Build GnuCobol
Looks like you build under MSYS2, correct? in This case the MSYS2 suggested way to build a package is to use write a
PKGBUILDand usepacman. Otherwise you may need to export some variables - I actually didn't check.For building problems
There is actually an MSYS2 official PKGBUILD file for GnuCOBOL which you can use and adjust as needed - but for GnuCOBOL 3.1.2 that wouldn't even be necessary - as it is officially packaged.
pacman -S mingw-w64-i686-gnucobolshould install it.Last edit: Simon Sobisch 2022-09-20
Simon!
I managed to build it using the package provided by the site. It was missing to install the textinfo package.
Anyway, thank you very much for the information as I was not aware of the package made available through pacman!
I will also check the package provided in git.
If you have any support, could you tell me how I can activate a parameter of the runtime.cfg? I needed to change the COB_LS_FIXED!
Thank you!
The package you've installed is intended for being used from "native" Windows, so go with one of:
cobcrun -rfor its path)set COB_RUNTIME_CONFIG=X:\some\app.cfgand adjust that fileset COB_LS_FIXED=true(or 1 or yes, or ...)SET ENVRIONMENT 'COB_LS_FIXED' TO "TRUE"... and in the case that you only want to use GnuCOBOL from MSYS2 there's a ready to use package at https://www.arnoldtrembley.com/GnuCOBOL.htm#MSYS2 (created from the official pacman package)
Simon!
Thank You!