Author Topic: module machine type 'x64' conflicts with target machine type 'X86'  (Read 10927 times)

Offline hcetiner

  • Multiple posting newcomer
  • *
  • Posts: 13
module machine type 'x64' conflicts with target machine type 'X86'
« on: September 04, 2009, 02:37:25 pm »
wxbase28.lib(event.obj)||fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'|
||=== Build finished: 1 errors, 0 warnings ===|

I am sure that I recompiled wxwidgets libraries using msvc via x64 architecture.
and now trying to get a simple helloworld window application under codeblocks.

so what is the exact settings global compiler settings for MSVC to compile x64?
I think codeblocks using wrong cl.exe,nmake.exe ...etc for msvc ?
regards
« Last Edit: September 04, 2009, 03:10:13 pm by hcetiner »

Offline hcetiner

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: module machine type 'x64' conflicts with target machine type 'X86'
« Reply #1 on: September 04, 2009, 04:38:19 pm »
sample code have no problem.
libs are compiled successfully.
because same project can be compiling wey well under MSVS IDE.
but
in codeblocks
module machine type 'x64' conflicts with target machine type 'X86'

simply I am testing of Codeblocks nowadays.

hours lost.I think I did all combinaions of settings. but no luck
(its easy under msvc ide.everythiing compiles and generates a very prettiy nice for x64 executable)

what makes it so hard to configure ?
I think it should also have ready to use wizards and compiler settings for x64 msvc architecture.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: module machine type 'x64' conflicts with target machine type 'X86'
« Reply #2 on: September 04, 2009, 05:38:31 pm »
Have you looked in the full output of the build?

See here how to enable it:
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]