Community
    • Login

    Running C program using gcc

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 4.6k Views 2 Watching
    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 Offline
      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 Offline
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors