Hello, I am totally new to GnuCOBOL. I am not a UNIX person but have had DOS down to a diskette and rebuilt one of my old PCs. So my quandary is exactly which steps to follow. I have downloaded what I believe are the files I need, but please tell me if they are correct or if my order is incorrect (some prerequisite is missing).
My goal is to compile Cobol programs via a command line and run them from the same command line. It appears I need to get cobc and cobcrun setup. I have used Visual Studio and Eclipse in the past but I saw a debugger that looked very similar to the Micro Focus Workbench Animator. I feel such a debugger will do fine for me. (after all, real programmers code in pen, right? but once in a while we need to cross out a line or two) I have done so much searching I have ran in circles. I think it was COBOLWORX.
Here is what I have:
gnucobol-3.2_win.7z I copied the underlying files in Win Explorer to my c:\oc directory
gnucobol-3.2-cblgdb-5.1.2-x86_64.zip This should be the COBOLWORX debugger
After I copied the contents of the bnucobol-3.2_win zip file to c:\oc, I went to the build_windows directory and ran set_env_vs_x64.cmd. But it gave me these errors:
C:\oc\build_windows> set_env_vs_x64.cmd
Setup Visual Studio (x64/amd64)...
Warning: Not possible to set amd64 environment for Microsoft Visual Studio!
Warning: Not possible to set amd64 environment for Microsoft Windows SDK!
cl.exe now in PATH:
ERROR: cl.exe not found!
Setting environment for GnuCOBOL.
cobcrun not found
I believe I can install COBOLWORX later, but do I need certain C libraries (compiler and runtime) installed first? If so, where do I get them?
Lastly, once I get this running I will most likely run multiple compiles from a .bat file (and maybe a few program iterations from them too).
Thanks, Vince Esparza
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
if you still want 64bit but without anything setup into the registry or start menu: get "GC32M-BDB-x64.7z " (66MB) from https://arnoldtrembley.com/GnuCOBOL.htm and unpack that somewhere (if you don't have 7zip installed, then rename to .exe - it is a self-extracting archive)
otherwise get "GC32-BDB-SP1-rename-7z-to-exe.7z" (26MB) from the same site, that will provide you with the most commonly used environment, a 32bit package (also works on 64bit Win11 of course), also unpack
get cobgdb, the "animator like frontend for GDB" https://github.com/marcsosduma/cobgdb - but be aware that this currently doesn't work well for a lot of separate programs that CALL each other; current deep link and place it in the installed/extracted folder in "bin" next to "cobc.exe"
For the non-install versions: double click the contained cobenv.cmd to start your GnuCOBOL command prompt and compile your first program with cobc (see the manual and wiki for details, or any online tutorial on how to use it). If you want to run the debugger use cobgdb instead of cobc - and see the documentation on the site linked above.
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2024-03-02
Thank You! I will check this out
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I am totally new to GnuCOBOL. I am not a UNIX person but have had DOS down to a diskette and rebuilt one of my old PCs. So my quandary is exactly which steps to follow. I have downloaded what I believe are the files I need, but please tell me if they are correct or if my order is incorrect (some prerequisite is missing).
My goal is to compile Cobol programs via a command line and run them from the same command line. It appears I need to get cobc and cobcrun setup. I have used Visual Studio and Eclipse in the past but I saw a debugger that looked very similar to the Micro Focus Workbench Animator. I feel such a debugger will do fine for me. (after all, real programmers code in pen, right? but once in a while we need to cross out a line or two) I have done so much searching I have ran in circles. I think it was COBOLWORX.
Here is what I have:
gnucobol-3.2_win.7z I copied the underlying files in Win Explorer to my c:\oc directory
gnucobol-3.2-cblgdb-5.1.2-x86_64.zip This should be the COBOLWORX debugger
After I copied the contents of the bnucobol-3.2_win zip file to c:\oc, I went to the build_windows directory and ran set_env_vs_x64.cmd. But it gave me these errors:
C:\oc\build_windows> set_env_vs_x64.cmd
Setup Visual Studio (x64/amd64)...
Warning: Not possible to set amd64 environment for Microsoft Visual Studio!
Warning: Not possible to set amd64 environment for Microsoft Windows SDK!
cl.exe now in PATH:
ERROR: cl.exe not found!
Setting environment for GnuCOBOL.
cobcrun not found
I believe I can install COBOLWORX later, but do I need certain C libraries (compiler and runtime) installed first? If so, where do I get them?
Lastly, once I get this running I will most likely run multiple compiles from a .bat file (and maybe a few program iterations from them too).
Thanks, Vince Esparza
Hi Esparanza and welcome to GnuCOBOL.
The easy way to achieve what you wrote you want to have:
For the non-install versions: double click the contained cobenv.cmd to start your GnuCOBOL command prompt and compile your first program with
cobc(see the manual and wiki for details, or any online tutorial on how to use it). If you want to run the debugger usecobgdbinstead ofcobc- and see the documentation on the site linked above.Thank You! I will check this out
Please create a account on Sourceforge and log in - it will save time
while you wait for one of us moderators to release your postings.
On 03/03/2024 00:49, noreply@sourceforge.net wrote: