Menu

cobc -o not working as expected

Anonymous
2021-07-26
2021-07-26
  • Anonymous

    Anonymous - 2021-07-26

    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
    • Simon Sobisch

      Simon Sobisch - 2021-07-26

      It should work. Do those folders exists? If yes add -v to the command line and add the full output here and we'll see more what is happening.

       

Anonymous
Anonymous

Add attachments
Cancel