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
CMake returns that, yes, it supports c++ threads. But then, it seems that Microsoft forgot to add the header file <threads.h>. So, I have found HAVE_THREADS to be true but then, compilation fails since <threads.h> can not be found in re_threads.h. CMake only checks for the existence of the symbol thrd_create but it does not look for the header as it seems..
My workaround is to comment out these lines with HAVE_CONFIG in <re_config.cmake> when using Visual Studio 2022. Or am I missing something?
Best regards
Hauke
The text was updated successfully, but these errors were encountered:
Hi,
I just installed latest version of VS 2022 yesterday, version 17.8. Starting from version 17.8, MS declares to support c++ threads,
https://devblogs.microsoft.com/cppblog/c11-threads-in-visual-studio-2022-version-17-8-preview-2/
In libre, CMake checks for the existence of c++ threads,
check_function_exists(thrd_create HAVE_THREADS)
if(HAVE_THREADS)
list(APPEND RE_DEFINITIONS -DHAVE_THREADS)
endif()
CMake returns that, yes, it supports c++ threads. But then, it seems that Microsoft forgot to add the header file <threads.h>. So, I have found HAVE_THREADS to be true but then, compilation fails since <threads.h> can not be found in re_threads.h. CMake only checks for the existence of the symbol thrd_create but it does not look for the header as it seems..
My workaround is to comment out these lines with HAVE_CONFIG in <re_config.cmake> when using Visual Studio 2022. Or am I missing something?
Best regards
Hauke
The text was updated successfully, but these errors were encountered: