diff --git a/include/dynamic-graph/signal-caster.h b/include/dynamic-graph/signal-caster.h
index 4ee41e5af8bad14c1b0adb350a6ee6da6cfd4703..8a4ea47b4417740d9de8d998259e9d3e77de1ffe 100644
--- a/include/dynamic-graph/signal-caster.h
+++ b/include/dynamic-graph/signal-caster.h
@@ -64,7 +64,7 @@ private:
 
 
 /// The library-wide instance of SignalCaster
-extern SignalCaster g_caster;
+extern DYNAMICGRAPH_EXPORT SignalCaster g_caster;
 
 /*
  * The SignalCast registerer class. Can be used to automatically register a cast when
diff --git a/src/signal/signal-caster.cpp b/src/signal/signal-caster.cpp
index bc81627e00f4d70539e0dbc64a2e55ab5f3c541e..a05a1bf7640f14c45600e8740261a785380e14ee 100644
--- a/src/signal/signal-caster.cpp
+++ b/src/signal/signal-caster.cpp
@@ -74,7 +74,7 @@ any SignalCaster::cast(const type_info& type, istringstream& iss) {
 
 
 /// The global instance of the caster class.
-DYNAMICGRAPH_EXPORT SignalCaster g_caster;
+SignalCaster g_caster;
 
 /// Default casts, such as casts already supported by std::iostream
 template<typename T> class DefaultCastRegisterer : public SignalCastRegisterer {