summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Demos/DynamicLink/LinkLib/DynamicLib.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Demos/DynamicLink/LinkLib/DynamicLib.cpp b/Demos/DynamicLink/LinkLib/DynamicLib.cpp
index 0b92684c36..547a206468 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()