Visual Studio 项目“发布"(x86) 构建无法加载 DLL (msobj100.dll) [英] Visual Studio Project "Release" (x86) build can not load a DLL (msobj100.dll)

查看:24
本文介绍了Visual Studio 项目“发布"(x86) 构建无法加载 DLL (msobj100.dll)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常简单的项目,我正在尝试使用 Visual Studio 2010 Express (x64) 版 (C++) 构建该项目.它只包含 1 个文件 (main.cpp),用于在我的机器上查找机器 epsilon,不执行任何其他操作.当我尝试编译 Debug x86 构建时,一切正常,并且生成了 .exe,但我想进行发布构建,因为我需要将此代码作为硬件分配.当我尝试编译 Release (x86) 构建时,它失败并显示以下错误 -

I have a really simple project that I am trying to build with Visual Studio 2010 Express (x64) edition (C++). It contains only 1 file (main.cpp) that is used to find the machine epsilon on my machine and does nothing else. When I try to compile a Debug x86 build everything works fine and an .exe is generated but I would like to make a release build as I need to turn this code is as a HW assignment. When I try and compile a Release (x86) build it fails with the following error -

1>链接:致命错误 LNK1296:无法加载 msobj100.dll

1>LINK : fatal error LNK1296: unable to load msobj100.dll

我进行了搜索,发现名为 msobj100.dll 的文件的唯一位置在C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64"中,因此我尝试将该位置添加到解决方案的 VC 目录 -> 可执行目录行.它没有用.为什么当 Debug 版本没有时,Release 版本会抱怨这个 DLL?我已经比较了两个构建页面,似乎找不到它们的依赖项或目录位置的任何差异.我真的很想知道发生了什么.谢谢!

I ran a search and the only place I found a file called msobj100.dll is in "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64" so I tried adding that location to the solution's VC Directories -> Executable Directories line. It didn't work. Why does the Release build complain about this DLL when the Debug build does not? I have compared both build pages and can not seem to find any differences in their dependencies or directory locations. I would really like to know what is going on. Thanks!

推荐答案

您正在尝试在 x86 应用程序中加载 64 位 DLL,您可能会在 C:\Windows\SysWow64 中找到 msobj100.dll

You're trying to load the 64-bit DLL in your x86 application, you can probably find msobj100.dll in C:\Windows\SysWow64

这篇关于Visual Studio 项目“发布"(x86) 构建无法加载 DLL (msobj100.dll)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆