News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How can i build 32 bit version executable on windows x64?

Started by JaniKovacs, February 15, 2013, 07:17:26 AM

Previous topic - Next topic

JaniKovacs

there's a wiki article to do it on linux, but apparently windows users were forgotten.
and please don't tell me its a compiler issue, because i can compile them just fine from command line, but
I just wish to put it together as a Code::Blocks project
I tried putting -m32 to both compiler and linker options, but that did not help. There should be an option for that anyways
please help !  :-[

Ceniza

Enable full build logging and compare the output against the command line execution that worked for you. Also, double check that you are using the same compiler from the same location. There's little we can do to help you with just that information.

JaniKovacs

okay so there's no setting to set it... (there really should be by the way)
so i tried it again with -m32 and
got this:

c:/crossdev/src/mingw-w64-svn/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain@16'
:o


i hope someone recognises this.
i started it from a new empty project, so i have no idea why codeblocks expects my code to start from a WinMain  :-[
my working compile obtions and th build log seems basically the same