Build system - COBOL

Plugins for SynWrite and CudaText...
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

BTW, if you have suggestions about Cobol lexer, ie syntax highlight, give them. in separate topic in 'lexers' part.
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

posted this info to the Wiki:
9.7 Runner tool for Cobol
https://wiki.freepascal.org/CudaText_plugins
Paolo_R
Posts: 24
Joined: 23.01.2021 01:11

Post by Paolo_R »

Alexey

I added the 'Run' entries to the build-system. When I run it - against an *.exe file - I get the following error: "The code execution cannot proceed because libcob-4.dll was not found".

This is bizarre since libcob-4.dll is in the C:?GnuCOBOL/bin folder :(
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

SF.net forum
https://sourceforge.net/p/gnucobol/disc ... b7e5aff32/
so maybe try to add c:\GnuCOBOL\bin to system PATH? in the Windows control panel?

https://stackoverflow.com/questions/442 ... -screensho
Paolo_R
Posts: 24
Joined: 23.01.2021 01:11

Post by Paolo_R »

Alexey

I've already set c:\gnucobol\bin as a PATH variable in the runcobol.cmd.

However I added it to the environment variables as per https://stackoverflow.com/questions/442 ... -screenshot but I get the same error "The code execution cannot proceed because libcob-4.dll was not found".
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

can you try to copy all Cobol DLL files (with libcob-4.dll) into the folder of compiled Cobol app?
windows searches for DLL files near the running .exe file.
in the same folder.
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

if my reply did not help, search at the Cobol support forums for that error-text. and ask the questions there.
Paolo_R
Posts: 24
Joined: 23.01.2021 01:11

Post by Paolo_R »

Alexey

Copying all the *.dll files did not help plus there are many of the files which I would not want to keep copying around with different programs.

I have a simple *.bat file with which I can run the *.exe files and I will do this. I will, however, raise a query in the GnuCOBOL forums and I will let you know if I get a response which works.
Post Reply