diff --git a/src/libs/qmljs/qmljslink.h b/src/libs/qmljs/qmljslink.h
index 6852e57caf50c5277b73010dc1e06bc1e5fdf41c..1f531379ee8d79d3302a9268535986d6905cdc87 100644
--- a/src/libs/qmljs/qmljslink.h
+++ b/src/libs/qmljs/qmljslink.h
@@ -16,7 +16,7 @@ class NameId;
 /*
     Helper for building a context.
 */
-class Link
+class QMLJS_EXPORT Link
 {
 public:
     // Link all documents in snapshot
diff --git a/src/libs/qmljs/qmljsscopebuilder.h b/src/libs/qmljs/qmljsscopebuilder.h
index cec9268dcf57ea0d7f2c490e4b9a0bb900232df2..ea95e6610fa40093ec7da27d3a74ebf1d73e6b63 100644
--- a/src/libs/qmljs/qmljsscopebuilder.h
+++ b/src/libs/qmljs/qmljsscopebuilder.h
@@ -15,7 +15,7 @@ namespace Interpreter {
     class Context;
 }
 
-class ScopeBuilder
+class QMLJS_EXPORT ScopeBuilder
 {
 public:
     ScopeBuilder(Document::Ptr doc, Interpreter::Context *context);