Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Compile and run didn't show cmd

    General Discussion
    2
    4
    100
    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.
    • Darisky
      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

      Ekopalypse 1 Reply Last reply Reply Quote 0
      • Ekopalypse
        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?

        Darisky 1 Reply Last reply Reply Quote 1
        • Darisky
          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

          Ekopalypse 1 Reply Last reply Reply Quote 0
          • Ekopalypse
            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
            Copyright © 2014 NodeBB Forums | Contributors