Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
在window下signAChart可以顺利编译,但主程序signA链接时却发生错误,错误描述如下 :
D:\cloudDisk\Qt\signA-qwt\bin\libs/libsignAChart.a(d000953.o):(.text+0x0): multiple definition of
SAChart2D::qt_metacast(char const*)' ./debug\moc_SAChart2D.o:D:\Qt\qtApp\signA-qwt\build-signA-Desktop_Qt_5_7_0_MinGW_32bit-Debug/debug/moc_SAChart2D.cpp:687: first defined here D:\cloudDisk\Qt\signA-qwt\bin\libs/libsignAChart.a(d000952.o):(.text+0x0): multiple definition of
SAChart2D::qt_metacall(QMetaObject::Call, int, void**)'
./debug\moc_SAChart2D.o:D:\Qt\qtApp\signA-qwt\build-signA-Desktop_Qt_5_7_0_MinGW_32bit-Debug/debug/moc_SAChart2D.cpp:695: first defined here
collect2.exe: error: ld returned 1 exit status
mingw32-make[1]: *** [..\bin\signA.exe] Error 1
显示的是libsignAChart.a的链接错误,定位到SAChart2D这个类,是Q_OBJECT出现了重定义
但signAChart可以单独编译,也就是说signA里有SAChart2D这个类?
于是我查遍了signA工程中的文件,有个可疑类是SAPlotChart,他是继承SAChart2D
class SAPlotChart : public SAChart2D
{
Q_OBJECT
public:
SAPlotChart(QWidget* parent = nullptr);
virtual ~SAPlotChart();
......
}
但并没有检查出什么问题,下面打算建立一个分支,对其进行删减排除问题
No Description
C++ XML SVG INI QMake other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》