Bug with gcc-4.6

Report bugs, bug fixes and workarounds here.
Topic author
refsteff
Posts: 17
Joined: 30.07.2011
With us: 8 years 2 months

Bug with gcc-4.6

Post #1by refsteff » 28.09.2011, 03:16

Hello,

the next standard compiler in the next suse release (12.0/12.1?) is gcc-4.6.+
Like in the past it's go stricter and stricter and now cstddef isn't automatically included anymore.
This little patch fixes it:

Code: Select all

diff -urN celestia.org/src/celengine/frametree.h celestia/src/celengine/frametree.h
--- celestia.org/src/celengine/frametree.h   2011-08-19 16:04:58.000000000 +0200
+++ celestia/src/celengine/frametree.h   2011-09-26 00:14:38.260914216 +0200
@@ -13,6 +13,7 @@
 #ifndef _CELENGINE_FRAMETREE_H_
 #define _CELENGINE_FRAMETREE_H_
 
+#include <cstddef>
 #include <vector>
 
 class Star;
diff -urN celestia.org/thirdparty/Eigen/Eigen/Core celestia/thirdparty/Eigen/Eigen/Core
--- celestia.org/thirdparty/Eigen/Eigen/Core   2011-08-19 16:05:19.000000000 +0200
+++ celestia/thirdparty/Eigen/Eigen/Core   2011-09-27 23:21:01.405188758 +0200
@@ -51,6 +51,7 @@
 #endif
 
 #include <cstdlib>
+#include <cstddef>
 #include <cmath>
 #include <complex>
 #include <cassert>

see you

refsteff
Specs: OpenSUSE 11.2 (modified), nVidia Geforce 9400 GT, Intel E7500, celestia svn 5166 Qt4

Return to “Bugs”

Who is online

Users browsing this forum: 12 guests