Solved

Making exe file out of c++ code

Posted on 2004-10-03
6
295 Views
Last Modified: 2012-05-05
Ok, I have the program Dev-c++.  I am just starting to learn c++.  How do you make a source file into an exe file?  This should be pretty easy.  I looked through the documentation and couldnt find it.
0
Comment
Question by:xur17
  • 2
6 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 125 total points
ID: 12213515
It is quiet easy.
-Launch Dev C++
-Select File -> new -> project
-A dialog will appear. Select 'empty project' and click OK
-Choose a filename for your project and clik OK
-Project is created, now select File -> New -> Source file
-You will be prompted to add the file to project, select YES
-Now past your code into the empty file or copy the above sample code
-Now select Run -> Compile, there wouldn't be errors.
-Exe file is created, select Run -> Run, and that's all

Sample program:
#include "stdio.h"
#include "stdlib.h"

int main()
{
   printf ("Hello, world!\n");
   system ("pause");
   return 0;  
}    
0
 
LVL 1

Expert Comment

by:Th3_GOD
ID: 12218679
Follow the above intructions, Your EXE file will be put whereever your source code was saved, so compile the code, then look in te directory or folder where your source code for that project is.
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 12635236
Well, this is an easy question, just hoping my answer was clear enough.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question