• Login
Community
  • Login

beginner: run and compile c++ program!

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 618 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.
  • N
    Nivrutti Pawar
    last edited by Jun 9, 2020, 9:15 AM

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

    E 1 Reply Last reply Jun 9, 2020, 10:52 AM Reply Quote 0
    • E
      Ekopalypse @Nivrutti Pawar
      last edited by Jun 9, 2020, 10:52 AM

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

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