Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 7th, 2006, 5:04 PM   #1
snipertomcat
Programmer
 
snipertomcat's Avatar
 
Join Date: Nov 2005
Location: Spring Valley, CA
Posts: 52
Rep Power: 3 snipertomcat is on a distinguished road
.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?
snipertomcat is offline   Reply With Quote
Old Feb 7th, 2006, 5:35 PM   #2
bigmitch
Newbie
 
Join Date: Nov 2004
Posts: 15
Rep Power: 0 bigmitch is on a distinguished road
Send a message via MSN to bigmitch
You need to use a C/C++ compiler! You can find free one's on the internet or use something like Microsoft Visual Studio
bigmitch is offline   Reply With Quote
Old Feb 7th, 2006, 5:35 PM   #3
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
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
Mjordan2nd is offline   Reply With Quote
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
Old Feb 8th, 2006, 11:04 AM   #5
snipertomcat
Programmer
 
snipertomcat's Avatar
 
Join Date: Nov 2005
Location: Spring Valley, CA
Posts: 52
Rep Power: 3 snipertomcat is on a distinguished road
Okay i understand. Thanks guys.
snipertomcat is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:07 PM.

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