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:
- 1st open the code with visual studio
- Run or Build the program
- then u will find a executable file where u have saved your code
- Open that executable file
but you must have installed mingw installed in your environment