visual-studio 致命错误 LNK1104 无法打开文件 C:\users\user\documents\visual.obj
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/828887/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
fatal error LNK1104 cannot open file C:\users\user\documents\visual.obj
提问by Attilah
I get a "fatal error LNK1104 cannot open file C:\users\user\documents\visual.obj" whenever I want to compile my project on Visual Studio 2008.
每当我想在 Visual Studio 2008 上编译我的项目时,我都会收到“致命错误 LNK1104 无法打开文件 C:\users\user\documents\visual.obj”。
my project uses a .lib file that I created.
我的项目使用我创建的 .lib 文件。
can anyone help me out ?
谁能帮我吗 ?
采纳答案by Attilah
Thanks , guyz. I've found the solution to my problem. I had to add quotes around the path to my .lib file in Project->Properties->Configuration Properties->Linker->Input->Additional Dependencies .
谢谢,盖兹。我已经找到了解决我的问题的方法。我必须在 Project->Properties->Configuration Properties->Linker->Input->Additional Dependencies 中的 .lib 文件路径周围添加引号。
回答by kgiannakakis
Make sure that the directory C:\users\user\documents\ exists and that you have read/write access to it.
确保目录 C:\users\user\documents\ 存在并且您对它具有读/写访问权限。
回答by powtac
With this http://www.google.de/search?q=visual+studio+2008+LNK1104I found this answer by http://social.msdn.microsoft.com/Forums/en-US/user?user=einaros.
有了这个http://www.google.de/search?q=visual+studio+2008+LNK1104我找到了这个答案http://social.msdn.microsoft.com/Forums/en-US/user?user=埃纳罗斯。
You need to add the DirectX library folder to Visual Studio's search path. See the "Directories" settings under Tools -> Options -> Projects and Solutions. Otherwise the linker will not know where to find d3dx9.lib.
您需要将 DirectX 库文件夹添加到 Visual Studio 的搜索路径。请参阅工具 -> 选项 -> 项目和解决方案下的“目录”设置。否则链接器将不知道在哪里可以找到 d3dx9.lib。

