#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

    ERROR in notepad++ while running c program


    HELLO

    when i try to integrate c compile gcc in to naoteoad it gives error like this


    "C:\Dev-Cpp\bin\gcc.exe -o $C:\Dev-Cpp\bin\gcc.exe"
    CreateProcess() failed with error code 2:
    The system cannot find the file specified.

    help me
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,413
    Rep Power
    1871
    > "C:\Dev-Cpp\bin\gcc.exe -o $C:\Dev-Cpp\bin\gcc.exe"
    Aside from the fact that $ is special to the shell, why are you trying to OVERWRITE the compiler using the -o option?

    Show us what you tried with the NPP symbol names, as documented in the help
    To run a new command:

    Sselect Run->Run.... A dialog will pop up asking for the path to the program and possible any command line parameters. You can use the browse button to search for your program. The drop down list provides recently run programs. The command line arguments can also be based on the status of the current document, and are always enclosed in $(...), where can be:

    FULL_CURRENT_PATH the fully qualified path to the current document.
    CURRENT_DIRECTORY The directory the current document resides in.
    FILE_NAME The filename of the document, without the directory.
    NAME_PART The filename without the extension.
    EXT_PART The extension of the current document.
    NPP_DIRECTORY The directory that contains the notepad++.exe executable that is currently running.
    >CURRENT_WORD The currently selected text in the document.
    CURRENT_LINE The current line number that is selected in the document (0 based index, the first line is 0).
    CURRENT_COLUMN The current column the cursor resides in (0 based index, the first position on the line is 0).

    For example,

    "$(NPP_DIRECTORY)\notepad++.exe" -multiInst "$(FULL_CURRENT_PATH)"
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper

IMN logo majestic logo threadwatch logo seochat tools logo