LNK1104无法打开__。lib错误 [英] LNK1104 Can not open __.lib error

查看:157
本文介绍了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


这篇关于LNK1104无法打开__。lib错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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