Thread: .cpp to .exe
View Single Post
Old Feb 7th, 2006, 6:34 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote