Index: trunk/MagicSoft/Cosy/candrv/canopen.cc
===================================================================
--- trunk/MagicSoft/Cosy/candrv/canopen.cc	(revision 9514)
+++ trunk/MagicSoft/Cosy/candrv/canopen.cc	(revision 9515)
@@ -631,4 +631,4 @@
 WORD_t CanOpen::CobId(BYTE_t node, BYTE_t fcode) const
 {
-    return (fcode<<7) | node&0x1f;
-}
+    return (fcode<<7) | (node&0x1f);
+}
Index: trunk/MagicSoft/Cosy/caos/Ring.cc
===================================================================
--- trunk/MagicSoft/Cosy/caos/Ring.cc	(revision 9514)
+++ trunk/MagicSoft/Cosy/caos/Ring.cc	(revision 9515)
@@ -2,4 +2,6 @@
 
 #include <iostream>
+
+#include <math.h>
 
 #include "Led.h"
Index: trunk/MagicSoft/Cosy/gui/MGEmbeddedCanvas.cc
===================================================================
--- trunk/MagicSoft/Cosy/gui/MGEmbeddedCanvas.cc	(revision 9514)
+++ trunk/MagicSoft/Cosy/gui/MGEmbeddedCanvas.cc	(revision 9515)
@@ -8,4 +8,6 @@
 
 #include <iostream>
+
+#include <math.h>
 
 #include <TList.h>
Index: trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc
===================================================================
--- trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc	(revision 9514)
+++ trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc	(revision 9515)
@@ -2,4 +2,6 @@
 
 #include <iostream>
+
+#include <TObjArray.h>
 
 #include "MAstro.h"
Index: trunk/MagicSoft/Cosy/tpoint/TPointStar.h
===================================================================
--- trunk/MagicSoft/Cosy/tpoint/TPointStar.h	(revision 9514)
+++ trunk/MagicSoft/Cosy/tpoint/TPointStar.h	(revision 9515)
@@ -36,5 +36,6 @@
 
     Double_t GetMag() const { return fMag; }
-    Double_t GetResidual(Double_t *err=0) const;
+    Double_t GetResidual(Double_t *err) const;
+    Double_t GetResidual() const;
 
     void operator=(TPointStar &set)
Index: trunk/MagicSoft/Cosy/videodev/FilterLed.cc
===================================================================
--- trunk/MagicSoft/Cosy/videodev/FilterLed.cc	(revision 9514)
+++ trunk/MagicSoft/Cosy/videodev/FilterLed.cc	(revision 9515)
@@ -2,5 +2,8 @@
 
 #include <memory.h>   // memset
+#include <math.h>
 #include <iostream> // cout
+
+#include <TMath.h>
 
 #include "Led.h"
@@ -406,5 +409,5 @@
     
     // 254 because b<=max and not b<max
-    const double sdev = TMath::Sqrt(sq-sum*sum);
+    const double sdev = sqrt(sq-sum*sum);
     const byte   max  = sum+fCut*sdev>254 ? 254 : (byte)(sum+fCut*sdev);
 
