当前位置:网站首页>QT信号量 无法解析的错误的总结
QT信号量 无法解析的错误的总结
2022-04-23 11:15:00 【还债大湿兄】
错误如下:
signals:
void mousePress(QMouseEvent *event);
错误 LNK2019 无法解析的外部符号 "public: void __cdecl QCustomPlot::mousePress(class QMouseEvent *)" (?mousePress@QCustomPlot@@QEAAXPEAVQMouseEvent@@@Z),该符号在函数 "protected: virtual void __cdecl QCustomPlot::mousePressEvent(class QMouseEvent *)" (?mousePressEvent@QCustomPlot@@MEAAXPEAVQMouseEvent@@@Z) 中被引用 TollgateEditorQT D:\S3TollgateEditorSkillNew\TollgateEditorQT\qcustomplot.obj 1
按网上可能是没有moc,结果发觉不是
cd D:\xxxx
D:
moc "D:\xxxx\qcustomplot.h" -o "D:\xxxx\qcustomplot.cpp"
我重新生成一个moc,错误依然
后来复盘了下,因为我是移植工程,可能有两个一样的类,导致工程xxxxx.vcxproj中原来有moc的,现在少了
用notepad打开,加上后就行了
<ClCompile Include="GeneratedFiles\Debug\moc_qcustomplot.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile>
编译通过
版权声明
本文为[还债大湿兄]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_30377315/article/details/120666618
边栏推荐
- The songbird document editor will be open source: starting with but not limited to markdown
- 解决 『SunCertPathBuilderException:unable to find valid certification path to requested target』 问题
- About the three commonly used auxiliary classes of JUC
- JDBC – PreparedStatement – 如何设置 Null 值?
- ConstraintLayout布局
- 卷积层和池化层总结
- How to quickly query 10 million pieces of data in MySQL
- Learn go language 0x03: understand the dependency between variables and initialization order
- CUMCM 2021-B:乙醇偶合制備C4烯烴(2)
- 26. Delete duplicates in ordered array
猜你喜欢

关于JUC三大常用辅助类

Database management software sqlpro for SQLite for Mac 2022.30

R-Drop:更强大的Dropout正则方法

得物技术网络优化-CDN资源请求优化实践

学习 Go 语言 0x04:《Go 语言之旅》中切片的练习题代码

R-drop: a more powerful dropout regularization method

After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before

MySQL Router重装后重新连接集群进行引导出现的——此主机中之前已配置过的问题

Excel · VBA array bubble sorting function

2022爱分析· 工业互联网厂商全景报告
随机推荐
采用百度飞桨EasyDL完成指定目标识别
Mysql8.0安装指南
web三大组件(Servlet,Filter,Listener)
ffmpeg命令行常用参数
PDMS软光刻加工过程
How to quickly query 10 million pieces of data in MySQL
软件测试人员,如何优秀的提Bug?
Jupyter lab top ten high productivity plug-ins
Get things technology network optimization - CDN resource request Optimization Practice
Applet payment
MySQL分区表实现按月份归类
Code implementation of general bubbling, selection, insertion, hill and quick sorting
学习 Go 语言 0x04:《Go 语言之旅》中切片的练习题代码
MySQL对数据表已有表进行分区表的实现
进程间通信 -- 消息队列
GO接口使用
Visual common drawing (I) stacking diagram
Excel·VBA自定义函数获取单元格多数值
赛微微电科创板上市破发:跌幅达26% 公司市值44亿
Alarm scene recognition