I invoke cobc with: cobc -x c:\cobol\devl\source\hellowdevl.cob -t c:\cobol\devl\hellowdevl.txt -o c:\cobol\devl\object\hellowdevl.exe
expecting my output .exe file to be c:\cobol\devl\object -- it is not, it is in file c:\cobol\devl\object.exe (no matter what the source filename is); the listing file is in c:\cobol\devl\hellowdevl.txt as expected.
Am I wrong in thinking that the -o option is to indicate where the .exe file is to be? If so is there an option which will allow specification of the location of the output .exe file?
Last edit: Simon Sobisch 2021-07-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I invoke cobc with:
cobc -x c:\cobol\devl\source\hellowdevl.cob -t c:\cobol\devl\hellowdevl.txt -o c:\cobol\devl\object\hellowdevl.exeexpecting my output .exe file to be c:\cobol\devl\object -- it is not, it is in file c:\cobol\devl\object.exe (no matter what the source filename is); the listing file is in c:\cobol\devl\hellowdevl.txt as expected.
Am I wrong in thinking that the -o option is to indicate where the .exe file is to be? If so is there an option which will allow specification of the location of the output .exe file?
Last edit: Simon Sobisch 2021-07-26
It should work. Do those folders exists? If yes add
-vto the command line and add the full output here and we'll see more what is happening.