How do you compile a .exe from source

What do you need & what compiler

Page 1 of 1

4 Replies - 491 Views - Last Post: 18 December 2008 - 06:21 AM Rate Topic: -----

#1 chuck981996  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 119
  • Joined: 03-July 08

How do you compile a .exe from source

Posted 17 December 2008 - 11:49 PM

Hi,

I have been coding applications for some time but I can never use them on another computer without a compiler. I use the Code::Blocks IDE with the MingGW compiler. When I compile I press Build & Run. I am wondering how you compile executables for Windows.

I don't mind changing my compiler, or even my IDE but I would rather not use Microsoft Visual Studio if that's possible.

Also while I've posted this I wanted to ask: Whenever I compile Win32 applications it always displays the console runner. Is there any way to stop this happening?

Thanks in advance for any help, :wub:

~Chuck981996

Is This A Good Question/Topic? 0
  • +

Replies To: How do you compile a .exe from source

#2 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 988
  • View blog
  • Posts: 5,135
  • Joined: 28-September 06

Re: How do you compile a .exe from source

Posted 17 December 2008 - 11:55 PM

Here you go:
http://forums.codebl...hp?topic=3343.0
Was This Post Helpful? 0
  • +
  • -

#3 chuck981996  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 119
  • Joined: 03-July 08

Re: How do you compile a .exe from source

Posted 18 December 2008 - 12:32 AM

Thanks very much for the answer Janotte, but...... I am afraid that is for Linux.

This post has been edited by chuck981996: 18 December 2008 - 12:32 AM

Was This Post Helpful? 0
  • +
  • -

#4 MorphiusFaydal  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 43
  • View blog
  • Posts: 1,376
  • Joined: 12-May 05

Re: How do you compile a .exe from source

Posted 18 December 2008 - 12:41 AM

In the project settings, you can change it to GUI application.

And change the build target to "Release", build it, and then you *should* be able to just send the .EXE along to someone who doesn't have a compiler installed.
Was This Post Helpful? 1
  • +
  • -

#5 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 988
  • View blog
  • Posts: 5,135
  • Joined: 28-September 06

Re: How do you compile a .exe from source

Posted 18 December 2008 - 06:21 AM

View Postchuck981996, on 17 Dec, 2008 - 11:32 PM, said:

Thanks very much for the answer Janotte, but...... I am afraid that is for Linux.


So you are running on Windows and want to compile for Windows?

Ah ha - I completely misunderstood your question.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1