简体   繁体   English

VS2015编译器在我的32位中间目录中生成64位* obj文件,而不是配置的64位1

[英]VS2015 compiler Generates 64 bit *obj files in my 32 bit Intermed dir instead of the configured 64 bit one

So, I have a problem with object files being generated in the wrong folder in .\\Release (32 bit build folder) for my x64 bit configs and when I select 32 but for builds they fail as they try to read the objects. 因此,对于x64位配置,在.\\Release (32位构建文件夹)的错误文件夹中生成目标文件时出现问题,当我选择32但对于构建时,它们在尝试读取对象时失败。 The issue is I cant find where to reconfigure the directory to write the object files to for the 64 bit platform builds to fix this issue. 问题是我找不到在何处重新配置目录以将目标文件写入到64位平台构建中来解决此问题。 Also present on the 64 bit debug builds where they write their object files to the 32 bit debug folder while being built. 也存在于64位调试版本中,在此版本中,它们在构建时将其目标文件写入32位调试文件夹。

So, Where Can I and how can I change this? 那么,我可以在哪里以及如何更改呢?

ok so, I just tested to verify I set it to Release x64 config to build the solution in after deleting the folders that has all the build files in them and it confirms the obj files are written in the 32 bit Release and Debug folders after I copied their settigns but for the 64 bit platform. 好的,我删除了所有包含构建文件的文件夹后,就进行了验证,将其设置为Release x64 config以构建解决方案,并确认将obj文件写入了32位Release和Debug文件夹中。复制了他们的settigns,但用于64位平台。 I thought this would change their intermed dir to x64 like on the settings for that plarform so it means the compiler must be missreading the 32 bit platform settings for it or something. 我以为这会将他们的中间目录更改为x64,就像该平台上的设置一样,因此这意味着编译器必须为它或其他东西误读了32位平台设置。

The directory settings are on the first page of the Project Properties. 目录设置在项目属性的第一页上。 You should probably just set the directories to different values. 您可能应该将目录设置为不同的值。

For me it looks like this: 对我来说,它看起来像这样:

在此处输入图片说明

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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