diff --git a/Modules/Core/Metadata/include/otbMetaDataKey.h b/Modules/Core/Metadata/include/otbMetaDataKey.h
index 2fc00307893480115c73c02c1257fed72323035d..d4533fa77725b72fc5b04aa4e0a90da540507142 100644
--- a/Modules/Core/Metadata/include/otbMetaDataKey.h
+++ b/Modules/Core/Metadata/include/otbMetaDataKey.h
@@ -274,7 +274,7 @@ public:
 };
 
 template <unsigned int VDim>
-OTBMetadata_EXPORT bool operator==(const LUT<VDim> & lhs, const LUT<VDim> & rhs)
+bool operator==(const LUT<VDim> & lhs, const LUT<VDim> & rhs)
 {
   bool axisComparison = true;
   for (unsigned int i = 0; i < VDim; i++)