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.
    • Kaushal DokaniaK
      Kaushal Dokania
      last edited by

      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

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Kaushal Dokania
        last edited by

        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors