Solved

Making exe file out of c++ code

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now