Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: hcetiner on September 04, 2009, 02:37:25 pm

Title: module machine type 'x64' conflicts with target machine type 'X86'
Post by: hcetiner 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
Title: Re: module machine type 'x64' conflicts with target machine type 'X86'
Post by: hcetiner 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.
Title: Re: module machine type 'x64' conflicts with target machine type 'X86'
Post by: oBFusCATed 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