Solution:
in the pro file of the project,
Add:
LIBS += -lpthread libwsock32 libws2_32
Read More:
- [Solved] Qt Error: undefined reference to xxxxx
- [Solved] QT error: error: undefined reference to ` VTable`
- [Solved] C++ error: undefined reference to `xxx‘
- [Solved] QT Error: error: undefined reference to `GameModel::~GameModel()’
- [Solved] cortex_M3 freeRTOS Error: undefined reference to `_sbrk‘
- Clion new method shows undefined reference to solution
- error: undefined reference to `calculate()` [How to Solve]
- [Solved] PCL Compile Error: undefined reference to `pcl::PCLBase<pcl::PointXYZRGBA>:: XXX
- [Solved] Compile Error: undefined reference to `google::FlagRegisterer::FlagRegisterer
- GCC Error:(.text+0x24): undefined reference to `main‘collect2: error: ld returned 1 exit status [Solved]
- [Solved] VScode Error: undefined reference to ‘WinMain’ collect2.exe: error: ld returned 1 exit status
- How to Solve QT and PCIe interactive loading setupapi.H error
- [Solved] Compile the program error: undefined reference to `cv::dnn::dnn4_v20210301::Net::~Net()‘
- [Solved] Qt Error: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
- [Solved] unesolved external symbol _imp_fprintf referenced in funciton _showerror
- [Solved] C++ Error: Undefined symbols for architecture x86_64:
- [Solved] Using `babel-preset-react-app` requires that you specify `NODE_ENV` or `BABEL_ENV` environment variables. Valid values are “development”, “test”, and “production”. Instead, received: undefined.
- [Solved] qt phonon Play wav file Error:“symbol lookup error: /usr/lib/kde4/plugins/phonon_backend/phonon_gstreamer.so: undefined symbol: _ZNK6Phonon11MediaSource3mrlEv”
- QT Error: ‘C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe‘ failed
- How to Solve Kotlin unresolved reference error