From 1c64ac480b27ab74d2a60f23180da2aca1e98736 Mon Sep 17 00:00:00 2001
From: Gaetan Bricteux <gaetan.bricteux@uclouvain.be>
Date: Thu, 20 Oct 2011 13:29:09 +0000
Subject: [PATCH] fix

---
 Common/onelab.h       |  4 ++--
 Fltk/onelabWindow.cpp | 11 +++++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/Common/onelab.h b/Common/onelab.h
index 051aecfa01..4f35d1bf12 100644
--- a/Common/onelab.h
+++ b/Common/onelab.h
@@ -595,8 +595,8 @@ namespace onelab{
     void setPid(int pid){ _pid = pid; }
     GmshServer *getGmshServer(){ return _gmshServer; }
     void setGmshServer(GmshServer *server){ _gmshServer = server; }
-    virtual bool run(const std::string &what){ return false; }
-    virtual bool kill(){ return false; }
+    virtual bool run(const std::string &what);
+    virtual bool kill();
   };
 
   class remoteNetworkClient : public client{
diff --git a/Fltk/onelabWindow.cpp b/Fltk/onelabWindow.cpp
index f074a14ed1..baf63b965d 100644
--- a/Fltk/onelabWindow.cpp
+++ b/Fltk/onelabWindow.cpp
@@ -5,6 +5,7 @@
 
 #include <FL/Fl.H>
 #include "GmshMessage.h"
+#include "onelab.h"
 #if (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 3)
 #include <FL/Fl_Value_Input.H>
 #include <FL/Fl_Input_Choice.H>
@@ -641,6 +642,16 @@ void solver_cb(Fl_Widget *w, void *data)
 
 #else
 
+bool onelab::localNetworkClient::run(const std::string &what)
+{
+  Msg::Error("The solver interface requires FLTK 1.3");
+}
+
+bool onelab::localNetworkClient::kill()
+{
+  Msg::Error("The solver interface requires FLTK 1.3");
+}
+
 void solver_cb(Fl_Widget *w, void *data)
 {
   Msg::Error("The solver interface requires FLTK 1.3");
-- 
GitLab