在Qt中,我得到许多Windows函数,如SHGetKNownFolderPath未解决的链接器错误
#include "pip.h" #include "ui_pip.h" #include <QFileDialog> #include <QMessageBox> #include <Objbase.h> #include <iostream> #include <fstream> #include <string> #include <sstream> #include <algorithm> #include <QtNetwork/QHostAddress> #include <shlobj.h> #include <windows.h> #include <Shlwapi.h> #include <KNownfolders.h>
function:
PWSTR appData = 0; if (SUCCEEDED(SHGetKNownFolderPath(FOLDERID_Desktop,NULL,&appData))) { wcout << appData << endl; }
pip.obj : error LNK2019: unresolved external symbol _SHGetKNownFolderPath@16 referenced in function "private: void __thiscall pip::on_submitButton_clicked(void)" (?on_submitButton_clicked@pip@@AAEXXZ)
我需要告诉QT Shell32.dll库在哪里或什么东西shlobj.h ?
CLOCK_MONOTONIC最大值
AttachConsole错误5:访问被拒绝
如何通过代理服务器环境获得非标准服务?
在gcc中有作为内置macros的非保留标识符的原因是什么?
编写primefacesfunction
在c ++中使用系统调用UNRAR.exe
为什么不能将variables移动到另一个线程
使用C ++在Linux中计算磁盘读/写
在C#中更改语言
你必须链接你的项目与实现该符号的库 ( shell32.lib )!
LIBS += -L"C:\Path\Microsoft SDK\Windows\v7.1\Lib" -lshell32
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。