Menu

CudaText problem

Anonymous
2023-07-04
2023-07-05
  • Anonymous

    Anonymous - 2023-07-04

    I am using CudaText as an IDE for COBOL programs. It has the ability to Compile and Run programs via a 'Build' system (similar to Sublime Text).

    I have the Compile part working fine but the Run section always fails with "The code execution cannot proceed because libcob-4.dll was not found".

    This is strange because there is a batch file which is used in these routines which spells out the paths:

    set Path=c:\gnucobol\bin; c:\gnucobol\config;c:\gnucobol\copy;c:\gnucobol\include;c:\gnucobol\lib
    set COB_CONFIG_DIR=c:\gnucobol\config
    set COB_COPY_DIR=c:\gnucobol\copy
    set COB_INCLUDE_PATH=c:\gnucobol\include
    set COB_LIB_PATH=c:\gnucobol\lib
    cobc -x -std=mf %1

    and clearly the Compile routine uses the Path variable to pick up the required processes .dlls but it fails with the Run routine. I can use a simple batch file to Run the compiled programs :

    Path=c:\gnucobol\bin; c:\gnucobol\config;c:\gnucobol\copy;c:\gnucobol\include;c:\gnucobol\lib
    %1

    Can anyone shed light on this 'dll not found' issue? Thanks

     
  • Simon Sobisch

    Simon Sobisch - 2023-07-04

    The batch file is only used for compilation - so you possibly need another one for the run.
    If not then try to run with an argument - set_env.cmd yourprog (in this case the set_env script will setup PATH, or your patch file).

     
  • Paul Richards

    Paul Richards - 2023-07-05

    Simon
    I have a GnuCOBOL compiled .exe file in c:\workarea\gnucobol\dectable. When I run set_env.cmd <prog name=""> I get :</prog>

    C:\WORKAREA\GnuCOBOL\DECTABLE>set_env dectable.exe

    Setting environment for GnuCOBOL 3.1.2 (23Dec2020) with MinGW binaries
    (GCC 6.3.0, PDcursesMod 4.2.0, GMP 6.2.0, BDB 18.1.40)

    'find' is not recognized as an internal or external command,
    operable program or batch file.
    <

    When I run a simple batch file:

    C:\WORKAREA\GnuCOBOL\DECTABLE>
    path=c:\gnucobol\bin; c:\gnucobol\config; c:\gnucobol\copy; c:\gbnucobol\include; c:\gnucobol\lib
    %1
    <
    as: run dectable.exe
    the program runs fine.

     
  • Paul Richards

    Paul Richards - 2023-07-05

    Sorry about the formatting :-)

     

Anonymous
Anonymous

Add attachments
Cancel