Home > Mobile >  How to start c app from desktop with double-click?
How to start c app from desktop with double-click?

Time:03-20

I have written one very simple app in C. I know how to run it through Visual studio, but i want to start it from desktop with a double-click. If I double-click on a .exe file made in folder, it does not start. How can I do this?

CodePudding user response:

you must compile it first with mingw or like compiler. and start it with by code: cmd> yourdirectory(e.g Desktop)/ gcc yourcodefile.c your question is available also internet => https://www.edureka.co/blog/how-to-compile-c-program-in-command-prompt/

CodePudding user response:

  1. 1st open the code with visual studio
  2. Run or Build the program
  3. then u will find a executable file where u have saved your code
  4. Open that executable file

but you must have installed mingw installed in your environment

  •  Tags:  
  • c
  • Related