Page 3 of 3

Posted: 02.07.2023 05:56
by main Alexey
BTW, if you have suggestions about Cobol lexer, ie syntax highlight, give them. in separate topic in 'lexers' part.

Posted: 02.07.2023 12:37
by main Alexey
posted this info to the Wiki:
9.7 Runner tool for Cobol
https://wiki.freepascal.org/CudaText_plugins

Posted: 03.07.2023 02:58
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 :(

Posted: 03.07.2023 05:52
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

Posted: 03.07.2023 08:22
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".

Posted: 03.07.2023 08:32
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.

Posted: 03.07.2023 08:46
by main Alexey
if my reply did not help, search at the Cobol support forums for that error-text. and ask the questions there.

Posted: 04.07.2023 04:53
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.