Menu

cobc execution failure

Anonymous
2021-07-17
2021-07-17
  • Anonymous

    Anonymous - 2021-07-17

    I installed gnucobol from Arnold Trembley's site following the instructions in https://bigdanzblog.wordpress.com/2020/05/05/installing-gnucobol-on-windows/ including setting the environment variable. This appears to have been successfull.
    When I try to execute it from CMD I am unable as CMD defaults to C:\Users\Administrator> (which can not be changed) adding cobc -V to this gives an error. So I used the run (Windows key & R) entering the full path C:\gnuCOBOL\bin\cobc.exe -v. This results in a brief flash of a black screen which disappears immediately. What have I done wrong or not done?

    Windows 10 up to date on Asus laptop

     
  • Simon Sobisch

    Simon Sobisch - 2021-07-17

    The black screen is because the command-line program runs and when it exits the command window exits, too.

    I haven't looked at that blog but the easiest way to setup is:

    • unpack one of Arnold's builds (or the similar nightly build packages)
    • when you want to use GnuCOBOL open the contained set_env.cmd, works both from cmd.exe and from [WIN]+[R] (in the later case a cmd.exe window stays open)
    • done
     

Anonymous
Anonymous

Add attachments
Cancel