28.03.2012, 03:11
I'm not sure if I correctly understood your question, but here is goes:
Remember to change the extension.
Source: http://www.mingw.org/wiki/MinGWforFirstTimeUsers
Код:
Example: For the file helloworld.cpp in the folder C:\docs\hello enter the command cd c:\docs\hello Now type the compile command g++ helloworld.cpp -o helloworld.exe The -o switch defines the name of the output file, without it the output file would be a.exe.
Source: http://www.mingw.org/wiki/MinGWforFirstTimeUsers