Skip to content

Commit 6cf3303

Browse files
authored
[skip-ci][win] Export a couple of missing symbols (root-project#10262)
* [skip-ci][win] Export a couple of missing symbols Fix the `ntpl002_vector.C`, `ntpl005_introspection.C`, `ntpl006_friends.C`, and `ntpl007_mtFill.C` tutorials failing with the following errors: ``` Processing ntpl002_vector.C... IncrementalExecutor::executeFunction: symbol '_Smtx_unlock_shared' unresolved while linking [cling interface function]! You are probably missing the definition of _Smtx_unlock_shared Maybe you need to load the corresponding shared library? IncrementalExecutor::executeFunction: symbol '_Smtx_lock_shared' unresolved while linking [cling interface function]! You are probably missing the definition of _Smtx_lock_shared Maybe you need to load the corresponding shared library? ``` * The missing symbols are for std:c++17
1 parent 59fd728 commit 6cf3303

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/metacling/src/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ if(MSVC)
128128
__std_terminate
129129
cling_runtime_internal_throwIfInvalidPointer
130130
)
131+
if(CMAKE_CXX_STANDARD GREATER 14)
132+
set(cling_exports ${cling_exports}
133+
_Smtx_lock_shared
134+
_Smtx_unlock_shared
135+
)
136+
endif()
131137
if("${CMAKE_GENERATOR_PLATFORM}" MATCHES "x64")
132138
set(cling_exports ${cling_exports}
133139
??2@YAPEAX_K@Z

0 commit comments

Comments
 (0)