win32:libs 未定义的引用

发布于 2024-08-02 19:03:44 字数 703 浏览 5 评论 0原文

我想在 Qt 项目中链接 .lib,但收到有关对 vhtIOConn::getDefault(vhtIOConn::DeviceType) 的未定义引用的错误。

我已将以下规范添加到 .pro 文件中:

######################################################################
# Automatically generated by qmake (2.01a) vie 28. ago 12:48:10 2009
######################################################################

TARGET = 
DEPENDPATH += .
INCLUDEPATH += .

LIBS += "C:\agregar\VirtualHandCore.lib"
LIBS += "C:\agregar\VirtualHandDevice.lib"
LIBS += "C:\agregar\VirtualHandRegistry.lib"

# Input
HEADERS += "C:/Documents and Settings/halvarado/Mis documentos/respaldos de Qt/Development/include/vhandtk/vhtBase.h"
SOURCES += main.cpp

我应该做什么?

I want to link a .lib in my Qt project and I get an error about an undefined reference to vhtIOConn::getDefault(vhtIOConn::DeviceType).

I have already added the following specifications to the .pro file:

######################################################################
# Automatically generated by qmake (2.01a) vie 28. ago 12:48:10 2009
######################################################################

TARGET = 
DEPENDPATH += .
INCLUDEPATH += .

LIBS += "C:\agregar\VirtualHandCore.lib"
LIBS += "C:\agregar\VirtualHandDevice.lib"
LIBS += "C:\agregar\VirtualHandRegistry.lib"

# Input
HEADERS += "C:/Documents and Settings/halvarado/Mis documentos/respaldos de Qt/Development/include/vhandtk/vhtBase.h"
SOURCES += main.cpp

What should I do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

街道布景 2024-08-09 19:03:44

现在无法访问电脑,但请尝试删除引号并使用斜杠而不是反斜杠作为库路径的分隔符。

Don't have access to a pc now, but try removing the quotes and using slash instead of backslash as separator for the lib paths.

鹿港巷口少年归 2024-08-09 19:03:44
win32 : LIBS += $quote(C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\glew32s.lib)
win32 : LIBS += $quote(C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\gltools.lib)

就是这样

win32 : LIBS += $quote(C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\glew32s.lib)
win32 : LIBS += $quote(C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\gltools.lib)

this is how

自控 2024-08-09 19:03:44

这对我有用,我目前正在 Linux 中使用 Qt 5。

我所做的是在 name_of_your_project.pro 中添加这一行,

LIBS += -luiohook

您可以尝试一下,只需将 uiohook 更改为您要链接的库的名称即可。我希望这有帮助。

this worked for me, I'm currently working with Qt 5 in linux.

what I did was to add in the name_of_your_project.pro this line

LIBS += -luiohook

you could try it, just change uiohook for the name of the lib you want to link. I hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文