diff --git a/include/dynamic-graph/command.h b/include/dynamic-graph/command.h
index ac602054cfc06786545dd49740d52de899c96fed..b8727af9008dd94c867954abf0a76577fbbc28d0 100644
--- a/include/dynamic-graph/command.h
+++ b/include/dynamic-graph/command.h
@@ -40,7 +40,7 @@ namespace dynamicgraph {
     /// Parameters are set by calling Command::setParameterValues with a
     /// vector of Values the types of which should fit the vector specified
     /// at construction.
-    class DYNAMIC_GRAPH_DLLEXPORT Command
+    class DYNAMIC_GRAPH_DLLAPI Command
     {
     public:
       virtual ~Command();