Author Topic: How can i build 32 bit version executable on windows x64?  (Read 4258 times)

Offline JaniKovacs

  • Single posting newcomer
  • *
  • Posts: 2
How can i build 32 bit version executable on windows x64?
« on: February 15, 2013, 07:17:26 am »
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 !  :-[

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: How can i build 32 bit version executable on windows x64?
« Reply #1 on: February 15, 2013, 05:14:33 pm »
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.

Offline JaniKovacs

  • Single posting newcomer
  • *
  • Posts: 2
Re: How can i build 32 bit version executable on windows x64?
« Reply #2 on: February 16, 2013, 02:18:44 am »
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