compilation
Title
Question
Sir, how to compile using Windows OS in mingw gcc compiler when my program is typed in notepad++ application.
C-and-Cpp First-C-Program 06-07 min 0-10 sec
Answers:
If you have installed properly, ideally the same commands should work, try with this g++ program-name.cpp on the command line. I cannot guarantee you as we do not use windows machines. In case of any errors please contact the mingw community.
In windows to compile C++ program
-----------------------------------------------
C:\cygwin64\bin>g++ -o function_cpp function.cpp
here function_cpp is the exe file name
In windows to run exe file of C++ program
---------------------------------------------------------
C:\cygwin64\bin>function_cpp
Login to add comment