?
Solved

Making exe file out of c++ code

Posted on 2004-10-03
6
Medium Priority
?
318 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 500 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

762 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