- issue
Cannot initialize a parameter of type 'const tchar *' (aka 'const wchar_t *') with an lvalue of type 'const char *'- solution:
// comment out the `&& !__MINGW32__` of `include/oneapi/tbb/profiling.h:135` #if (_WIN32||_WIN64) //&& !__MINGW32__ inline void itt_set_sync_name(void* obj, const wchar_t* name) { r1::itt_set_sync_name(obj, name); } inline void itt_set_sync_name(void* obj, const char* name) { std::size_t len_name = multibyte_to_widechar(nullptr, name, 0); wchar_t *obj_name = new wchar_t[len_name]; multibyte_to_widechar(obj_name, name, len_name); r1::itt_set_sync_name(obj, obj_name); delete[] obj_name; } #else
- solution:
- issue
LOAD_LIBRARY_SEARCH_APPLICATION_DIR' was not declared in this scope- solution:
// src/tbb/dynamic_link.cpp:561 #if _WIN32 DWORD loading_flags(int) { // Do not search in working directory if it is considered unsafe return 0x00002000; // changed from LOAD_LIBRARY_SAFE_CURRENT_DIRS to 0x00002000 } #else
- solution:
- issue
atomic_base.h:498: more undefined references to 'std::__glibcxx_assert_fail(char const*, int, char const*, char const*)'- solution:
# src/tbbmalloc/CMakeLists.txt:71 set_target_properties(tbbmalloc PROPERTI DEFINE_SYMBOL "" VERSION ${TBBMALLOC_BINARY_VERSION}.${TBB_BINARY_MINOR_VERSION} SOVERSION ${TBBMALLOC_BINARY_VERSION} LINKER_LANGUAGE CXX # changed from C to CXX )
- solution:
Last active
January 12, 2026 05:01
-
-
Save Harold2017/2556c3de75e7d9dd1ddb6acfc3de55c5 to your computer and use it in GitHub Desktop.
Build `TBB` with `mingw64` + `vcpkg` on Windows
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment