Community
    • Login

    Compile and run didn't show cmd

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 271 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.
    • DariskyD
      Darisky
      last edited by

      hey i’am new guy, i’ve try to running Hello C++
      when i compile and run didn’t show cmd

      and this result

      NPP_EXEC: “Cpp Compile & Run”
      SET: G++ = C:\cygwin64\bin\g++.exe
      $(G++) = C:\cygwin64\bin\g++.exe
      NPP_SAVE: C:\Users\daris\Documents\npp\hello
      CD: C:\Users\daris\Documents\npp
      Current directory: C:\Users\daris\Documents\npp
      “C:\cygwin64\bin\g++.exe” -Wall -Wextra -Wpedantic -std=c++11 -o “hello” “hello”
      Process started (PID=12848) >>>
      hello: file not recognized: file format not recognized
      collect2: error: ld returned 1 exit status
      <<< Process finished (PID=12848). (Exit code 1)
      IF: 1 != 0 goto Done
      GOTO: DONE
      ================ READY ================

      Thank you

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @Darisky
        last edited by

        @Darisky said in Compile and run didn't show cmd:

        run didn’t show cmd

        Why should it? NppExec uses its own pseudo cmd shell.
        Did you follow what NppExec manual and help states?
        I’m not a C++ dev but shouldn’t you have a hello.cpp compile it to
        something like a hello.obj and link it to hello.exe?

        DariskyD 1 Reply Last reply Reply Quote 1
        • DariskyD
          Darisky @Ekopalypse
          last edited by

          @Ekopalypse hmm i though to show the result like other
          show popup and anything alse
          but since there notif error and idk why…
          i stuch

          EkopalypseE 1 Reply Last reply Reply Quote 0
          • EkopalypseE
            Ekopalypse @Darisky
            last edited by

            @Darisky

            Sorry, but I don’t understand your last post.
            Did you try my suggestion about using hello.cpp instead of hello.

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