where is Cobol.exe???
where is Cobol.exe???
I am a new used of Zeus Tool.
I would be using Zeus for for learing and upgrading myself as a cobol programmer....
However when i tried compiling a basic program, it gave me an error saying COBOL.EXE not found. When i search my harddisk to see where cobol.exe is saved. it gave me ZERo results.
Doesn't ZEUS provide the cobol.exe with the package.
regards,
Akash
I would be using Zeus for for learing and upgrading myself as a cobol programmer....
However when i tried compiling a basic program, it gave me an error saying COBOL.EXE not found. When i search my harddisk to see where cobol.exe is saved. it gave me ZERo results.
Doesn't ZEUS provide the cobol.exe with the package.
regards,
Akash
Doesn't ZEUS provide the cobol.exe with the package.
Zeus does not come with a COBOL compiler. You first need to install one of the many COBOL compilers available and then configure Zeus to point to that compiler.
For example here are some links to a few COBOL compiler options:
http://www.oevelen.com/eng/cobol/lang/index.html
http://www.thefreecountry.com/compilers/cobol.shtml
Cheers Jussi
GNU Cobol Setup
Details on how to use the GNU Cobol compiler from inside Zeus can be found here: http://www.zeusedit.com/zforum/viewtopic.php?t=7174
TinyCOBOL Setup
Details on how to use the TinyCOBOL compiler from inside Zeus can be found here: http://www.zeusedit.com/zforum/viewtopic.php?p=11245
Cheers Jussi
Details on how to use the GNU Cobol compiler from inside Zeus can be found here: http://www.zeusedit.com/zforum/viewtopic.php?t=7174
TinyCOBOL Setup
Details on how to use the TinyCOBOL compiler from inside Zeus can be found here: http://www.zeusedit.com/zforum/viewtopic.php?p=11245
Cheers Jussi
Last edited by jussij on Wed Jul 09, 2014 11:35 pm, edited 5 times in total.
Thanks Jussi for ur elaborate explanation...
I was trying to install using the procedure described by you but the installer never installs as.exe. I have tried so many times..
Can u please send the as.exe as an attachment at akashraog@yahoo.co.in?
Thanks for all your help.
Ragards,
Akash
I was trying to install using the procedure described by you but the installer never installs as.exe. I have tried so many times..
Can u please send the as.exe as an attachment at akashraog@yahoo.co.in?
Thanks for all your help.
Ragards,
Akash
This is only one of many files that needs to be installed so sending it by attachement will not help.Can u please send the as.exe as an attachment
The as.exe should have be installed by step number 5.
To clarify this step, you need to go to this link below where you will find the MinGW-5.1.4.exe file:
http://sourceforge.net/project/showfile ... _id=595197
You need to download and run this istaller into the c:\mingw folder and it will install the whole mingw compiler which includes the missing as.exe file.
Cheers Jussi
My test.cobol program:
IDENTIFICATION DIVISION.
PROGRAM-ID. ShortestProgram.
PROCEDURE DIVISION.
DisplayPrompt.
DISPLAY "I did it".
STOP RUN.
and when I get the following error when i try to compile the test program...
--------------------Configuration: <default settings> - Release--------------------
Using document type compiler options....
C:\MinGw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot open output file roses.exe: Permission denied
collect2: ld returned 1 exit status
warning: TinyCOBOL compiler resource file 'C:/MinGW\htcobolrc' not found - using internal defaults
Can you help???
IDENTIFICATION DIVISION.
PROGRAM-ID. ShortestProgram.
PROCEDURE DIVISION.
DisplayPrompt.
DISPLAY "I did it".
STOP RUN.
and when I get the following error when i try to compile the test program...
--------------------Configuration: <default settings> - Release--------------------
Using document type compiler options....
C:\MinGw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot open output file roses.exe: Permission denied
collect2: ld returned 1 exit status
warning: TinyCOBOL compiler resource file 'C:/MinGW\htcobolrc' not found - using internal defaults
Can you help???
Roses.cob is the name of the test file that i had created...
here is the compile output that you had asked to post:
---------------------------------------------------------------------------
**** Unregistered Software. To be used for evaluation purposes only. ****
---------------------------------------------------------------------------
Debug: Changed to the 'C:\Program Files\Zeus\zExample\' directory supplied
Debug: Command: htcobol.exe "C:\Program Files\Zeus\zExample\roses.cob"
--------------------Configuration: <default settings> - Release--------------------
Using document type compiler options....
Debug: Command Line: C:\Windows\system32\cmd.exe /c htcobol.exe "C:\Program Files\Zeus\zExample\roses.cob"
Debug: Started Process ID: 0xB0C
C:\MinGw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot open output file roses.exe: Permission denied
collect2: ld returned 1 exit status
warning: TinyCOBOL compiler resource file 'C:/MinGW\htcobolrc' not found - using internal defaults
Thanks,
Akash
here is the compile output that you had asked to post:
---------------------------------------------------------------------------
**** Unregistered Software. To be used for evaluation purposes only. ****
---------------------------------------------------------------------------
Debug: Changed to the 'C:\Program Files\Zeus\zExample\' directory supplied
Debug: Command: htcobol.exe "C:\Program Files\Zeus\zExample\roses.cob"
--------------------Configuration: <default settings> - Release--------------------
Using document type compiler options....
Debug: Command Line: C:\Windows\system32\cmd.exe /c htcobol.exe "C:\Program Files\Zeus\zExample\roses.cob"
Debug: Started Process ID: 0xB0C
C:\MinGw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot open output file roses.exe: Permission denied
collect2: ld returned 1 exit status
warning: TinyCOBOL compiler resource file 'C:/MinGW\htcobolrc' not found - using internal defaults
Thanks,
Akash
In the instructions I posted I defined this command line:

Also a permission denied error usually means the operating system is not allowing you to write to the output file.
This usually means the file is locked or your user id does not have the correct permissions to write to that folder.
Cheers Jussi
I don't see the -M options in the command line of the debug output that you postedhtcobol.exe -M "$fn"

Also a permission denied error usually means the operating system is not allowing you to write to the output file.
This usually means the file is locked or your user id does not have the correct permissions to write to that folder.
Cheers Jussi
It probably is not a good idea changing the permissions. But looking at the debug output you posted I think the problem might be that Vista is protecting the C:\Program Files\ folder.But how do u correct the PERMISSION issue?
In the debug output there is this line:
Code: Select all
C:\Program Files\Zeus\zExample\roses.cob
I would try creating a new c:\work\ folder and then saving this file to c:\work\roses.cob to see if that helps with the permissions.
Cheers Jussi