[CMake] [cmake-developers] [ANNOUNCE] CMake 3.1.0-rc1 now ready for testing!
Gilles Khouzam
Gilles.Khouzam at microsoft.com
Tue Nov 4 19:24:46 EST 2014
Hi Eric,
Can you send me a little more details or an example that exhibits the problem? I'd be happy to take a look.
-----Original Message-----
From: Eric Wing [mailto:ewmailing at gmail.com]
Sent: Tuesday, November 4, 2014 15:21
To: Gilles Khouzam
Cc: Brad King; Robert Maynard; CMake Developers; CMake MailingList
Subject: Re: [CMake] [cmake-developers] [ANNOUNCE] CMake 3.1.0-rc1 now ready for testing!
On 10/31/14, Gilles Khouzam <Gilles.Khouzam at microsoft.com> wrote:
> We actually have a couple if extra changes that are not fully ready to
> be pushed upstream yet.
>
> ~Gilles
> Sent from my Windows Phone
Since I have your attention, using CMakeMS, I hit what looks like a bug in the generation for the Windows Phone simulator. I have not tested 3.1.0-rc1, but since it is the from the same code base, I'm assuming it is affected too.
I get a linking failure for only the WinPhone simulator (Win32) binary. This is the error the linker is spitting out:
vccorlib.lib(compiler.obj) : error LNK2038: mismatch detected for
'vccorlib_lib_should_be_specified_before_msvcrt_lib_to_linker': value '1' doesn't match '0' in MSVCRT.lib(appinit.obj)
vccorlib.lib(compiler.obj) : error LNK2005: ___crtWinrtInitType already defined in MSVCRT.lib(appinit.obj) D:\<snip>\Release\FlappyBlurrr.exe : fatal error LNK1169: one or more multiply defined symbols found
This only happens for me with the Win32 simulator binary. I do not have this problem with the ARM device binary, nor do I have this problem with the Windows Store x64 binary. (I do not bother with Win32 Windows Store.)
Somebody helped me and told me to add these switches directly to my Visual Studio project:
- for Debug builds, add: /nodefaultlib:vccorlibd /nodefaultlib:msvcrtd vccorlibd.lib msvcrtd.lib
- for Release builds, add: /nodefaultlib:vccorlib /nodefaultlib:msvcrt vccorlib.lib msvcrt.lib
This seemed to make my linking problems go away.
I'm thinking that CMake should automatically be setting these for me for the Windows Phone simulator.
Thanks,
Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
More information about the CMake
mailing list