0

How to make a .cpp file into .exe file

22nd Oct 2016, 2:23 PM
abhishek
abhishek - avatar
8 odpowiedzi
+ 2
The cpp file is the file you typed in, the source code from which you produce your program. You don't want to delete it. Look for another file in the same folder that has the same name as your cpp file but has the .exe extension.
22nd Oct 2016, 3:05 PM
Zen
Zen - avatar
+ 1
You have to compile your file for that. Which IDE are you using? CodeBlocks? C++ Dev?
22nd Oct 2016, 2:39 PM
Zen
Zen - avatar
+ 1
In C++ Dev, you can compile in Execute > Compile (shortcut: F9).
22nd Oct 2016, 2:55 PM
Zen
Zen - avatar
+ 1
Yes, providing they are using the same architecture (a program compiled for Windows won't work on a Mac for example).
22nd Oct 2016, 3:13 PM
Zen
Zen - avatar
0
C++ dev
22nd Oct 2016, 2:44 PM
abhishek
abhishek - avatar
0
After compiling the extension remains . Cpp but i have to make a permanent . Exe
22nd Oct 2016, 2:59 PM
abhishek
abhishek - avatar
0
If i move only that exe file to another pc will it work?
22nd Oct 2016, 3:10 PM
abhishek
abhishek - avatar
0
your compiler makes object files(*.o in Unix like os). after that a program called linker(usually provided by compiler supplier) generates executable file.
22nd Oct 2016, 3:53 PM
Evgeniy Dudnik
Evgeniy Dudnik - avatar