LNK1104无法打开__。lib错误

LNK1104无法打开__。lib错误

问题描述:

您好,当我尝试使用我用来连接机器的外部库创建一个新项目时,虽然我将头文件放在库目录中的include目录和库文件中作为指令,但它仍然显示LNK1104错误,当我调试项目时。

Hello, when I try to create a new project with external library which I used to connect with machine, although I put head file in include directory and library file in library directory as instruction, it still show LNK1104 error, when I debug the project.

你能帮帮我吗?

谢谢。


当我尝试使用外部库创建一个新项目时,我曾经将其与机器连接,尽管我将头文件放在库中的include目录和库文件中作为指令的目录,当我调试项目时,它仍然显示LNK1104错误。

when I try to create a new project with external library which I used to connect with machine, although I put head file in include directory and library file in library directory as instruction, it still show LNK1104 error, when I debug the project.




通常,当您要使用第三方lib文件时,为 两个
项目设置属性 链接器



常规 - >其他库目录







输入 - >附加依赖性



第一个告诉链接器在哪里查看,第二个告诉链接器

要使用哪个库文件。它不会自动搜索指定目录的

中的所有lib来解析引用。只会使用指定的库。


Generally when you want to use a 3rd-party lib file you set two project
properties for the linker:

General->Additional Library Directories

and

Input->Additional Dependencies

The first tells the linker where to look, and the second tells the linker
which library file(s) to use. It won't automatically search all libs in
the specified directories to resolve references. Only the libs specified
will be used.

链接工具错误LNK1104

https://msdn.microsoft.com/en-us/library/ts7eyw4s .aspx

- Wayne

- Wayne