Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   .cpp to .exe (http://www.programmingforums.org/showthread.php?t=8297)

snipertomcat Feb 7th, 2006 5:04 PM

.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?

bigmitch Feb 7th, 2006 5:35 PM

You need to use a C/C++ compiler! You can find free one's on the internet or use something like Microsoft Visual Studio

Mjordan2nd Feb 7th, 2006 5:35 PM

Simply use your compiler to compile your code, and it should output an executable.

DaWei Feb 7th, 2006 6:34 PM

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.

snipertomcat Feb 8th, 2006 11:04 AM

Okay i understand. Thanks guys.


All times are GMT -5. The time now is 9:37 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC