Qt使用dmctk时的错误
错误1:
error LNK2001: 无法解析的外部符号 __imp__OpenProcessToken@12
error LNK2001: 无法解析的外部符号 __imp__LookupPrivilegeValueA@12
error LNK2001: 无法解析的外部符号 __imp__AdjustTokenPrivileges@24
error LNK2001: 无法解析的外部符号 __imp__OpenSCManagerA@12
error LNK2001: 无法解析的外部符号 __imp__CloseServiceHandle@4
error LNK2001: 无法解析的外部符号 __imp__OpenServiceA@12
error LNK2001: 无法解析的外部符号 __imp__QueryServiceStatus@8
error LNK2001: 无法解析的外部符号 __imp__ControlService@12
error LNK2001: 无法解析的外部符号 __imp__DeleteService@4
error LNK2001: 无法解析的外部符号 __imp__CreateServiceA@52
error LNK2001: 无法解析的外部符号 __imp__StartServiceA@12
error LNK2001: 无法解析的外部符号 __imp__RegOpenKeyExA@20
error LNK2001: 无法解析的外部符号 __imp__RegQueryValueExA@24
error LNK2001: 无法解析的外部符号 __imp__RegCloseKey@4
error LNK2001: 无法解析的外部符号 __imp__RegCreateKeyA@12
error LNK2001: 无法解析的外部符号 __imp__RegCreateKeyExA@36
error LNK2001: 无法解析的外部符号 __imp__RegSetValueExA@24
error LNK2001: 无法解析的外部符号 __imp__RegEnumKeyA@16
error LNK2001: 无法解析的外部符号 __imp__RegDeleteKeyA@8
error LNK2001: 无法解析的外部符号 __imp__RegDeleteValueA@8
error LNK2001: 无法解析的外部符号 __imp__RegQueryInfoKeyA@48
error LNK2001: 无法解析的外部符号 __imp__RegEnumKeyExA@32
原因:
本来程序的编译选项选择的是:使用标准windows库,当改为在静态库中使用MFC后就出现了上面的错误
解决方法:增加Advapi32.lib库
错误2:LNK2019 无法解析的外部符号 __imp_WSARecv
错误 LNK2019 无法解析的外部符号 __imp_WSARecv,该符号在函数 "public: bool __cdecl CTCPByteSession::Receive(void)" (?Receive@CTCPByteSession@@QEAA_NXZ)
错误 LNK2019 无法解析的外部符号 __imp_socket,该符号在函数 "public: static int __cdecl CTCPConnector::ConnectTo(int,int,int,int,int)" (?ConnectTo@CTCPConnector@@SAHHHHHH@Z)
错误 LNK2019 无法解析的外部符号 __imp_setsockopt,该符号在函数 "public: static int __cdecl CTCPConnector::ConnectTo(int,int,int,int,int)" (?ConnectTo@CTCPConnector@@SAHHHHHH@Z)
错误 LNK2019 无法解析的外部符号 __imp_send,该符号在函数 "public: virtual int __cdecl CTCPByteSession::CTCPByteBackScroll::BackGo(class CByteBuffer &)" (?BackGo@CTCPByteBackScroll@CTCPByteSession@@UEAAHAEAVCByteBuffer@@@Z)
错误 LNK2019 无法解析的外部符号 __imp_inet_addr,该符号在函数 "public: bool __cdecl CBombClient::ConnectTo(char const *,int,int)" (?ConnectTo@CBombClient@@QEAA_NPEBDHH@Z)
错误 LNK2019 无法解析的外部符号 __imp_htons,该符号在函数 "public: bool __cdecl CTCPCompleteCenter::AttachSocket(int,int)" (?AttachSocket@CTCPCompleteCenter@@QEAA_NHH@Z)
解决方法:
增加ws2_32.lib库
错误3:无法解析的外部符号 _GetAdaptersInfo@8
Localhost.obj : error LNK2019: 无法解析的外部符号 _GetAdaptersInfo@8,该符号在函数 "void __cdecl GetLocalAdapterInfo(void)" (?GetLocalAdapterInfo@@YAXXZ) 中被引用
1>J:\mfc dll\lanscannerdlg\Debug\lanscannerdlg.exe : fatal error LNK1120: 1 个无法解析的外部命令
解决方法:增加iphlpapi.lib(#pragma comment(lib,"iphlpapi.lib"))
Qt使用dmctk时的错误相关推荐
- QT程序编译时的错误:QMAKESPEC has not been set, so configuration cannot be deduced.
如果在编译的时候出现下面的错误: QMAKESPEC has not been set, so configuration cannot be deduced. Error processing pr ...
- qt html 库段错误,连接Qwt库时Qt代码中的分段错误
我试图用一些Qwt小部件创建一个Qt 应用程序,但是当我尝试链接Qwt库时,我发现Qt代码中存在分段错误.我使用的是非常简单的Qt程序,只弹出一个空白窗口:连接Qwt库时Qt代码中的分段错误 #in ...
- Navicat连接数据库成功,新建查询时提示错误“Cannot create file ……”
Navicat连接数据库成功,新建查询时提示错误"Cannot create file --" 原因:编辑连接{高级}<设置位置>被修改,该oci.dll不正确 解决方 ...
- CAS (10) —— JBoss EAP 6.4下部署CAS时出现错误exception.message=Error decoding flow execution的解决办法...
CAS (10) -- JBoss EAP 6.4下部署CAS时出现错误exception.message=Error decoding flow execution的解决办法 jboss版本: jb ...
- 共享文件时提示“将安全性信息应用到以下对象时发生错误”
在给某文件夹设置用户权限时发生错误,提示"将安全性信息应用到以下对象时发生错误",点击继续其它子文件及文件夹依然如此. 故障如图: 解决方法: 1.右键打开文件夹的属性,在弹出选项 ...
- 无法访问D盘,执行页内操作时的错误
打开D盘后出现"无法访问D:/,执行页内操作时的错误"怎么办? 既便D盘有病毒也不会出现这种状况,初步判断是D: 分区表错误,用系统安装光盘开机进入纯DOS下的修复模式中用 CHK ...
- ntbackup 创建卷影复制:ffffffff 时出现错误
今天备份时提示这个错误 备份状态 操作: 备份 活动备份目标: 文件 媒体名: "webBackup.bkf 创建于 2008-12-3,9:51" 卷影复制操作: 试图 1. 功 ...
- MDaemon 10.1.2 通过Webclient发邮件时,提示“发邮件时发生错误
MDaemon 10.1.2 通过Webclient发邮件时,提示"发邮件时发生错误",经查发现服务里边有个Simple mail transfer protocol 服务被启用, ...
- Vue.js 使用 Swiper.js 在 iOS 11 时出现错误
前言 在H5项目中,需要用到翻页效果,通过 Swiper 来实现,安装 Swiper npm i swiper -S 但是实际使用中,发现低版本 iOS < 11 会出现下面这个错误: Synt ...
最新文章
- Ubuntu 12.04搭建Ruby on Rails开发环境
- 新手如何使用有三AI系统性跟读AI领域的论文
- C指针原理(8)-C内嵌汇编
- 阿里云debian mysql_记录下在阿里云linux上安装与配置Mysql
- SAP Spartacus shipping address页面请求1 - Address
- MySQL入门-3:安装与客户端工具
- 前端代码规范网址导航(总结)
- pytorch学习笔记(十五):模型构造
- Mysql 使用sql语句快速复制表和数据
- 2022 SpringBoot/SSM的极为轻量级推荐博客系统
- DB2远程链接数据库编目命令代码
- ImageOptim图片压缩工具免费版
- unity摄像机镜头平滑处理
- android 设置启动画面,修改Android开机画面
- 软件工程作业-方舟学习笔记08-部分原理(续
- VVC代码阅读(2)compressGOP函数(1)
- 小米联系人删除怎么恢复
- 如何给图片加水印?分享怎么给图片加水印的方法
- 安装爱剪辑计算机丢失,windows10系统下安装“爱剪辑”软件的方法
- 2021年危险化学品经营单位主要负责人免费试题及危险化学品经营单位主要负责人考试总结
热门文章
- boost::shared_lock相关的测试程序
- boost::msm::mpl_graph::adjacency_list_graph相关的测试程序
- boost::coroutine2模块实现分段的stack的测试程序
- GDCM:gdcm::Image的测试程序
- boost::container实现多态双端队列的测试程序
- boost::contract模块实现access的测试程序
- Boost:矩阵转置的测试程序
- Boost:简单的双图bimap的测试程序
- ITK:灰度图像中的聚类像素
- ITK:指定区域裁剪图像