Solved

Making exe file out of c++ code

Posted on 2004-10-03
6
315 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

688 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