![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Nov 2005
Location: Spring Valley, CA
Posts: 52
Rep Power: 3
![]() |
.cpp to .exe
I gotta question. How would one turn a .cpp file into a .ext file? Would you compile it then just save it seperatly or sumthin?
|
|
|
|
|
|
#2 |
|
Newbie
|
You need to use a C/C++ compiler! You can find free one's on the internet or use something like Microsoft Visual Studio
|
|
|
|
|
|
#3 |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
Simply use your compiler to compile your code, and it should output an executable.
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower |
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
The build process typically has at least three parts. The .cpp is preprocessed to cram the include files directly into the source, and to expand #defines and such. The compiler then processes the source file or files to form object files. The linker resolves references between the various object files, if there are more than one, and generates the executable. Sometimes (not usually for "desktop" type systems) there's an additional location process. Modern compilers generally run through the entire build without further input from you, if you wish. Errors will abort the process at one point or another, of course.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 |
|
Programmer
Join Date: Nov 2005
Location: Spring Valley, CA
Posts: 52
Rep Power: 3
![]() |
Okay i understand. Thanks guys.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|