Community
    • Login

    command to compile and execute code in COBOL

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 1.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Davila w.wD
      Davila w.w
      last edited by

      I have a cobalt code and I would like to compile it

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Davila w.w
        last edited by

        @Davila-w.w

        I would use npp_exec plugin in order to achieve this but you can use the standard Run menu as well, depends how flexible you want to be.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • PeterJonesP
          PeterJones
          last edited by

          … For example, here’s an NppExec script that I use to save, compile, and run a standalone C++ program:

          npp_save
          cd "$(CURRENT_DIRECTORY)"
          g++ "$(FILE_NAME)" -o "$(NAME_PART)"
          npp_run cmd.exe /k "$(NAME_PART)"
          

          For compiling cobol, you would use your cobol compiler rather than “g++”, and would have to format the command line appropriately; if your compiler is not in your path, you will have to do something like “c:\full\path\to\compileCobol.exe”.

          If you don’t want to also run the program when compiled, then you could just remove the “npp_run …” command from the NppExec script.

          1 Reply Last reply Reply Quote 3
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors