diff --git a/Common/CommandLine.cpp b/Common/CommandLine.cpp
index 010b04299926679dc3531cdb64ed8a38661ffafc..c3beb1e52b68e1687a3603c21121a38010eec9e7 100644
--- a/Common/CommandLine.cpp
+++ b/Common/CommandLine.cpp
@@ -572,7 +572,7 @@ void GetOptions(int argc, char *argv[])
             i++; j++;
           }
           if(j < s)
-            Message::Error("Missing values in list (got %d instead of %d)", j, s);
+            Msg::Error("Missing values in list (got %d instead of %d)", j, s);
           gmsh_yysymbols[n].value = v;
           Msg::GetCommandLineNumbers()[n] = v;
 	}