diff --git a/Demos/DynamicLink/LinkLib/DynamicLib.cpp b/Demos/DynamicLink/LinkLib/DynamicLib.cpp index 0b92684c36c..547a206468c 100644 --- a/Demos/DynamicLink/LinkLib/DynamicLib.cpp +++ b/Demos/DynamicLink/LinkLib/DynamicLib.cpp @@ -55,6 +55,12 @@ private: Global g_glob { 5 }; extern "C" { + +// Tell the compiler that these symbols might be accessed from other places: +extern int global_lib_variable; +void global_lib_function(); +const char* other_lib_function(int my_argument); + int global_lib_variable = 1234; void global_lib_function()