Solved

Making exe file out of c++ code

Posted on 2004-10-03
6
306 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

726 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