[vtkusers] error: cmake + free optimizing compiler from .net framework SDK --- x86 conflicts with x64
Weiguang Guan
guanw at rhpcs.mcmaster.ca
Wed Dec 6 11:25:25 EST 2006
Hi,
I wanted to make use of the free C/C++ command line compiler that comes
with microsoft's .net framework SDK 2.0 (platform SDK is installed as
well). When I was using CMake to configure VTK5.0 on a x86 machine, I
chose "NMake Makefile". But the C compiler failed to compile a simple test
program, complaining "fatal error LNK1112: module machine type 'X86'
conflicts with target machine type 'X64'. I have no idea why it considered
my computer to be x64, and it didn't help at all even if I changed
/machine:x64 to /machine:/x86 in CMAKE_EXE_LINKER_FLAGS. Anybody had
similar experience or had suggestion to this situation? Thanks.
Weiguang
More information about the vtkusers
mailing list