当前位置:网站首页>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
边栏推荐
- Software testers, how to mention bugs?
- MySQL failed to insert the datetime type field without single quotation marks
- 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』 问题
- Use of SVN:
- ffmpeg命令行常用参数
- vm设置静态虚拟机
- How to bind a process to a specified CPU
- 学习 Go 语言 0x06:《Go 语言之旅》中 斐波纳契闭包 练习题代码
- Explain in detail the pitfalls encountered in DTS due to the time zone problems of timestamp and datetime in MySQL
猜你喜欢

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

Excel · VBA array bubble sorting function

Cumcm 2021 - B: préparation d'oléfines C4 par couplage éthanol (2)

Google Earth engine (GEE) - scale up the original image (taking Hainan as an example)

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

Visualized common drawing (II) line chart

语雀文档编辑器将开源:始于但不止于Markdown

Get things technology network optimization - CDN resource request Optimization Practice

Database management software sqlpro for SQLite for Mac 2022.30

Mysql8. 0 installation guide
随机推荐
MBA-day6 逻辑学-假言推理练习题
得物技术网络优化-CDN资源请求优化实践
Use of SVN:
Detailed explanation of typora Grammar (I)
Cygwin 中的 rename 用法
学习 Go 语言 0x06:《Go 语言之旅》中 斐波纳契闭包 练习题代码
Upgrade the functions available for cpolar intranet penetration
Three web components (servlet, filter, listener)
Visual Road (XII) detailed explanation of collection class
Explain in detail the pitfalls encountered in DTS due to the time zone problems of timestamp and datetime in MySQL
关于JUC三大常用辅助类
CUMCM 2021-B:乙醇偶合制備C4烯烴(2)
MySQL对数据表已有表进行分区表的实现
MySQL分区表实现按月份归类
Learning website materials
如何使用JDBC CallableStatement.wasNull()方法调用来查看最后一个OUT参数的值是否为 SQL NULL
Solutions to common problems in visualization (IX) background color
Implementation of partition table of existing data table by MySQL
mysql创建存储过程及函数详解
Chapter 1 of technical Xiaobai (express yourself)