Compile and run didn't show cmd

  • 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
    ================ READY ================

    Thank you

  • @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?

  • @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

  • @Darisky

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

Log in to reply