• Login
Community
  • Login

Running C program using gcc

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 4.3k 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.
  • K
    Kaushal Dokania
    last edited by Apr 2, 2016, 11:55 AM

    Hello
    I want to run my c programs via gcc compiler using notepad++
    i have installed gcc and it’s working from cmd
    I have already saved the following run shortcuts to do so :
    **compile **: alt+F9 : gcc -o “$(NAME_PART)” “$(FULL_CURRENT_PATH)”
    **execute **: ctrl+F9 : “$(NAME_PART)”
    but i can not execute my program… as nothing happens when i try do so so
    Please help how to solve this

    C 1 Reply Last reply Apr 2, 2016, 12:00 PM Reply Quote 0
    • C
      Claudia Frank @Kaushal Dokania
      last edited by Apr 2, 2016, 12:00 PM

      Hello @Kaushal-Dokania,

      can gcc be found in path? If not you have to set the directory.
      Is the output a console application? If so, you need to call cmd shell together with compiled exe.

      For such thing I would recommend to install nppExec plugin which could do this in one run
      and if I remember correctly there even was an example how to do it with gcc.

      Cheers
      Claudia

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