Menu

Invalid option --'O'

Anonymous
2017-08-30
2017-08-30
  • Anonymous

    Anonymous - 2017-08-30

    Hello,

    I've had to reinstall my OS and downloaded and compiled unicon.

    But in trying to run a siple program I get the following:

    unicon -s test.icn -x
    /usr/bin/icont: invalid option -- 'O'
    usage: icon  sourcefile   [args]
           icon  -P 'program' [args]
           icont [-cpstuENV] [-f s] [-o ofile] [-v i] file ... [-x args]
    

    The code I'm trying to run is very simple:

    procedure main()
        write("Hello, world")
    end
    

    So I'm not quite sure where the problem is.

    Any pointers would help. I compiled with Xlib headers for linux 64 bit.

     
  • Jafar

    Jafar - 2017-08-30

    It looks like you have icont installed on your system, I'm guessing that came from installing Icon's debian package. Unicon is finding that on the path and is using it instead of using Unicon's version of icont. We should fix Unicon to look first for icont in the same path where it is being launched, but for the mean time is to uninstall Icon package.

     
    • Brian Tiffin

      Brian Tiffin - 2017-08-30

      Or, put the Unicon bin/ directory before /usr/bin in PATH? Works for me with Icon installed from Ubuntu repos.

      Cheers,
      Brian

       
  • Anonymous

    Anonymous - 2017-08-30

    Thanks Brian, that's exactly what was going on. Uninstalling icon fixed the issue.

     

Anonymous
Anonymous

Add attachments
Cancel