error: undefined reference to `QUdpSocket::QUdpSocket(QObject*)'
时间: 2024-05-31 14:07:39 浏览: 142
Qt源码分析之QObject
This error message indicates that the linker is unable to find a reference to the constructor of the QUdpSocket class that takes a QObject pointer as its argument. This could be due to a missing include statement or a missing library in your project.
To resolve this issue, make sure that you have included the necessary header file for the QUdpSocket class and that you have added the appropriate library in your project settings. Additionally, you may also want to check if there are any conflicting definitions or declarations of the QUdpSocket class in your code.
阅读全文