How do I make an EXE out of a C code?

This is a discussion on How do I make an EXE out of a C code? within the C Programming forums, part of the General Programming Boards category; using Microsoft visual C++ 2010. THX....

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    9

    How do I make an EXE out of a C code?

    using Microsoft visual C++ 2010. THX.

  2. #2
    Registered User
    Join Date
    Oct 2010
    Posts
    9
    I made it.
    if anyone interested - I changed the DEBUG to RELEASE then I could find the exe file in my software folders.

  3. #3
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,537
    You goto build -> build solution.
    Your EXE will typically end up in your project folder\debug or your project folder\release.
    Compile in release mode when sending it to others to make sure they can run it on their computer.
    Debug is good when testing your program.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Third Eye Babkockdood's Avatar
    Join Date
    Apr 2010
    Posts
    352
    That's called compiling, for future reference

  5. #5
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    Look for the button with a gear and play arrow on it. It's "Build and Run", you can press it for instant gratification. It will build your program and run it all in one step.

    To add to what Babkockdood said: it's called compiling when you make some sort of code with a compiler, but there's usually a linker that gets ran behind the scenes to turn almost ready to run code into an executable. The second step is called linking. Compiling and linking together can be called building.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to make a exe file which can run directly
    By shonick in forum C Programming
    Replies: 6
    Last Post: 07-19-2010, 04:14 PM
  2. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  3. How do I make my exe open another exe
    By cpnoob in forum C++ Programming
    Replies: 7
    Last Post: 06-11-2006, 10:36 AM
  4. Replies: 7
    Last Post: 07-30-2005, 11:28 PM
  5. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 03:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21