visual-studio 链接:致命错误 LNK1104:无法打开文件“libcollada14dom21.lib”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3431023/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 12:19:23  来源:igfitidea点击:

LINK : fatal error LNK1104: cannot open file 'libcollada14dom21.lib'

c++visual-studiovisual-c++visual-studio-2010collada

提问by

I have hot this error at the linker:

我在链接器上遇到了这个错误:

LINK : fatal error LNK1104: cannot open file 'libcollada14dom21.lib'

链接:致命错误 LNK1104:无法打开文件“libcollada14dom21.lib”

I dunno why, libcollada14dom21.lib is in VSDIR/VC/lib.

我不知道为什么,libcollada14dom21.lib 在 VSDIR/VC/lib 中。

采纳答案by Karel Petranek

Make sure that you add libcollada14dom21.lib to Project Options -> Linker -> Input -> Additional Dependencies.

确保将 libcollada14dom21.lib 添加到 Project Options -> Linker -> Input -> Additional Dependencies。

回答by

Okay, solved :) The libs were in the lib dir, not in the lib/amd64 :D

好的,解决了 :) 库在 lib 目录中,而不是在 lib/amd64 中:D

回答by zar

I was getting this in solution where there are multiple projects. Even though all outputs are created to the same folder, I still had to provide a relative path of the library Project settings >>...>> Linker >> Input >> 'Additional Dependencies'from the client project or include hardcoded path of where to find the library!

我在有多个项目的解决方案中得到了这个。即使所有输出都创建到同一文件夹中,我仍然必须提供Project settings >>...>> Linker >> Input >> 'Additional Dependencies'来自客户端项目的库的相对路径,或者包含查找库的位置的硬编码路径!

Another craziness is that it also seems to depends on relative path of output of client executable. If my output directory is standard, the relative path doesn't work! If I change output directory to the same folder where the library is then relative path from executable works...kind of strange.

另一个疯狂之处在于它似乎也取决于客户端可执行文件的输出的相对路径。如果我的输出目录是标准的,则相对路径不起作用!如果我将输出目录更改为库是可执行文件的相对路径的同一文件夹......有点奇怪。