Compiletime error
Status: Pre-Alpha
Brought to you by:
gandy
gcc 4.5.0
gtkmm 2.20.3
In file included from ../plotmm/errorcurve.h:12:0,
from errorcurve.cc:14:
../plotmm/curve.h:143:2: error: 'SigC' does not name a type
make[2]: *** [libplotmm_la-errorcurve.lo] Error 1
make[2]: Leaving directory `/home/murks/build/mine/plotmm/src/plotmm-0.1.2/plotmm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/murks/build/mine/plotmm/src/plotmm-0.1.2'
make: *** [all] Error 2
A patch by Gentoo folks can be found here: http://bugs.gentoo.org/attachment.cgi?id=147262
The patch for version 0.1.2 which solve the problem:
diff -Naur plotmm-0.1.2.orig/plotmm/compat.h plotmm-0.1.2/plotmm/compat.h
--- plotmm-0.1.2.orig/plotmm/compat.h 2005-11-09 09:36:02.000000000 -0700
+++ plotmm-0.1.2/plotmm/compat.h 2012-10-22 21:42:47.000000000 -0700
@@ -58,7 +58,7 @@
#else
namespace PlotMM {
- typedef SigC::ObjectBase ObjectBase;
+ typedef sigc::ObjectBase ObjectBase;
}
#endif
diff -Naur plotmm-0.1.2.orig/plotmm/curve.h plotmm-0.1.2/plotmm/curve.h
--- plotmm-0.1.2.orig/plotmm/curve.h 2005-11-09 09:47:21.000000000 -0700
+++ plotmm-0.1.2/plotmm/curve.h 2012-10-22 21:53:26.000000000 -0700
@@ -140,7 +140,7 @@
int from = 0, int to = -1);
//! Signals that this curve has changed in some way or the other
- SigC::Signal0<void> signal_curve_changed;
+ sigc::signal0<void> signal_curve_changed;
protected:
virtual void init(const Glib::ustring &title);
diff -Naur plotmm-0.1.2.orig/plotmm/plot.cc plotmm-0.1.2/plotmm/plot.cc
--- plotmm-0.1.2.orig/plotmm/plot.cc 2005-11-09 09:59:48.000000000 -0700
+++ plotmm-0.1.2/plotmm/plot.cc 2012-10-22 21:52:14.000000000 -0700
@@ -406,19 +406,19 @@
}
//! Return the signal owned by plot canvas
-SigC::Signal3<void,int,int,GdkEventButton*> Plot::signal_plot_mouse_press()
+sigc::signal3<void,int,int,GdkEventButton*> Plot::signal_plot_mouse_press()
{
return canvas_.signal_plot_mouse_press;
}
//! Return the signal owned by plot canvas
-SigC::Signal3<void,int,int,GdkEventButton*> Plot::signal_plot_mouse_release()
+sigc::signal3<void,int,int,GdkEventButton*> Plot::signal_plot_mouse_release()
{
return canvas_.signal_plot_mouse_release;
}
//! Return the signal owned by plot canvas
-SigC::Signal3<void,int,int,GdkEventMotion*> Plot::signal_plot_mouse_move()
+sigc::signal3<void,int,int,GdkEventMotion*> Plot::signal_plot_mouse_move()
{
return canvas_.signal_plot_mouse_move;
}
diff -Naur plotmm-0.1.2.orig/plotmm/plot.h plotmm-0.1.2/plotmm/plot.h
--- plotmm-0.1.2.orig/plotmm/plot.h 2004-03-09 02:51:55.000000000 -0700
+++ plotmm-0.1.2/plotmm/plot.h 2012-10-22 21:55:20.000000000 -0700
@@ -79,9 +79,9 @@
virtual void clear();
virtual void end_replot();
- SigC::Signal3<void,int,int,GdkEventButton*> signal_plot_mouse_press;
- SigC::Signal3<void,int,int,GdkEventButton*> signal_plot_mouse_release;
- SigC::Signal3<void,int,int,GdkEventMotion*> signal_plot_mouse_move;
+ sigc::signal3<void,int,int,GdkEventButton*> signal_plot_mouse_press;
+ sigc::signal3<void,int,int,GdkEventButton*> signal_plot_mouse_release;
+ sigc::signal3<void,int,int,GdkEventMotion*> signal_plot_mouse_move;
protected:
virtual bool on_expose_event(GdkEventExpose* event);
@@ -141,9 +141,9 @@
Scale *scale(PlotAxisID id) { return tickMark_[id]; }
PlotLabel *label(PlotAxisID id) { return axisLabel_[id]; }
- SigC::Signal3<void,int,int,GdkEventButton*> signal_plot_mouse_press();
- SigC::Signal3<void,int,int,GdkEventButton*> signal_plot_mouse_release();
- SigC::Signal3<void,int,int,GdkEventMotion*> signal_plot_mouse_move();
+ sigc::signal3<void,int,int,GdkEventButton*> signal_plot_mouse_press();
+ sigc::signal3<void,int,int,GdkEventButton*> signal_plot_mouse_release();
+ sigc::signal3<void,int,int,GdkEventMotion*> signal_plot_mouse_move();
void set_selection(const Rectangle &r);
Rectangle get_selection() { return select_; }
diff -Naur plotmm-0.1.2.orig/plotmm/scale.h plotmm-0.1.2/plotmm/scale.h
--- plotmm-0.1.2.orig/plotmm/scale.h 2004-03-05 08:25:43.000000000 -0700
+++ plotmm-0.1.2/plotmm/scale.h 2012-10-22 21:53:57.000000000 -0700
@@ -133,7 +133,7 @@
/*! This signal is thrown whenever the scale is enabled or disabled
* \sa set_enabled, enabled
*/
- SigC::Signal1<void,bool> signal_enabled;
+ sigc::signal1<void,bool> signal_enabled;
protected:
virtual void on_realize();