You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error LNK2001 unresolved external symbol pthread_mutex_lock
Error LNK2001 unresolved external symbol pthread_mutex_unlock
Error LNK2019 unresolved external symbol pthread_testcancel referenced in function
Error LNK2019 unresolved external symbol pthread_equal referenced in function mosquitto__destroy Error LNK2019 unresolved external symbol pthread_join referenced in function mosquitto__destroy Error LNK2019 unresolved external symbol pthread_self referenced in function mosquitto_new
Error LNK2019 unresolved external symbol pthread_cancel referenced in function mosquitto__destroy Error LNK2019 unresolved external symbol pthread_mutex_init referenced in function mosquitto_reinitialise
Error LNK2019 unresolved external symbol pthread_mutex_destroy referenced in function mosquitto__destroy
Error LNK2019 unresolved external symbol pthread_create referenced in function mosquitto_loop_start
The issue can be solved by updating CMakeLists.txt
#find_package(Threads REQUIRED)
#set (PTHREAD_LIBRARIES Threads::Threads)
find_package(PThreads4W REQUIRED)
set (PTHREAD_LIBRARIES PThreads4W::PThreads4W)
I can create a pull request if anyone is having the same issue.
The text was updated successfully, but these errors were encountered:
Versions:
Mosquito version 2.0.18
Windows 10 Visual Studio 9
openssl
andpthread
libraries were installed with vcpkg as follows:This results in the following linking errors:
The issue can be solved by updating CMakeLists.txt
I can create a pull request if anyone is having the same issue.
The text was updated successfully, but these errors were encountered: