diff --git a/Solver/elasticitySolver.cpp b/Solver/elasticitySolver.cpp
index 72ace8fd311a35d6ffe3fcf7a414b12063b2ebe4..633f97a7fbb48d4fda637b6abc569ef2eb25cbbe 100644
--- a/Solver/elasticitySolver.cpp
+++ b/Solver/elasticitySolver.cpp
@@ -715,6 +715,11 @@ PView* elasticitySolver::buildVonMisesView(const std::string postFileName)
   Msg::Error("Post-pro module not available");
   return 0;
 }
+PView* elasticitySolver::buildStressesView (const std::string postFileName)
+{
+  Msg::Error("Post-pro module not available");
+  return 0;
+}
 #endif