简体   繁体   中英

Visual Studio Reverts Platform Change from x64 to Win32

I'm building zeromq 4.0.5. I need a 64-bit static build. I'm using VS2013. When I go into the configuration manager and change the platform to x64 the platform for libzmq remains Win32. If I manually change that one to x64 and close the dialog, it is back at Win32 when I open it again. Why? How do I get it to x64?

在此处输入图片说明

I resolved my issue by editing the project file (.vcxproj). I went through made an x64 entry for every win32 entry.

For example, I found this entry:

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='StaticRelease|Win32'" Label="Configuration">
    <ConfigurationType>StaticLibrary</ConfigurationType>
    <CharacterSet>MultiByte</CharacterSet>
    <WholeProgramOptimization>true</WholeProgramOptimization>
    <PlatformToolset>v120</PlatformToolset>
</PropertyGroup>

So I added this entry:

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='StaticRelease|x64'" Label="Configuration">
    <ConfigurationType>StaticLibrary</ConfigurationType>
    <CharacterSet>MultiByte</CharacterSet>
    <WholeProgramOptimization>true</WholeProgramOptimization>
    <PlatformToolset>v120</PlatformToolset>
</PropertyGroup>

There were probably around a dozen entries that needed to be added. No changes other than Win32->x64 were made for the entries.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM