beginner: run and compile c++ program!



  • I am new to notepad++ here, kindly please help me regarding run and compiling c++ program on NPP. I’ve used these commands:

    npp_save
    cd $(CURRENT_DIRECTORY)
    C:\Users\DELL\OneDrive\Desktop\CodeBlocks\MinGW\bin\g++.exe “$(FILE_NAME)”
    cmd /c “$(CURRENT_DIRECTORY)\a.exe”

    And output goes as:

    NPP_SAVE: C:\Users\DELL\OneDrive\Desktop\Notepad++\1prg.cpp
    CD: C:\Users\DELL\OneDrive\Desktop\Notepad++
    Current directory: C:\Users\DELL\OneDrive\Desktop\Notepad++
    C:\Users\DELL\OneDrive\Desktop\CodeBlocks\MinGW\bin\g++.exe “1prg.cpp”
    Process started (PID=7340) >>>
    g++.exe: error: ô1prg.cppö: No such file or directory
    <<< Process finished (PID=7340). (Exit code 1)
    cmd /c “C:\Users\DELL\OneDrive\Desktop\Notepad++\a.exe”
    Process started (PID=2948) >>>
    The filename, directory name, or volume label syntax is incorrect.
    <<< Process finished (PID=2948). (Exit code 1)
    ================ READY ================



  • @Nivrutti-Pawar

    g++ seems to have an issue here g++.exe: error: ô1prg.cppö: No such file or directory

    Where does ô and ö come from? Are you using the correct "
    and not the ? Are you running with an unusual OS setup?

    cmd /c "$(CURRENT_DIRECTORY)\a.exe" this will most probably fail
    as I would expect 1prg.exe to be created.


Log in to reply