compile errors on rev 10621, Windows XP
attempting to compile rev 10621, I get
Make error line 289: problem compiling: src/desktop-style.cpp: In function 'gdouble stroke_average_width(const GSList*)': src/desktop-style.cpp:429:59: error: 'isnan' was not declared in this scope src/desktop-style.cpp: In function 'int objects_query_strokewidth(GSList*, SPStyle*)': src/desktop-style.cpp:731:22: error: 'isnan' was not declared in this scope src/desktop-style.cpp: In function 'int objects_query_fontnumbers(GSList*, SPStyle*)': src/desktop-style.cpp:969:25: error: 'isnan' was not declared in this scope src/desktop-style.cpp: In function 'int objects_query_blur(GSList*, SPStyle*)': src/desktop-style.cpp:1459:41: error: 'isnan' was not declared in this scope
Alvin
On 6/9/11 01:33, Alvin Penner wrote:
attempting to compile rev 10621, I get
Make error line 289: problem compiling: src/desktop-style.cpp: In function 'gdouble stroke_average_width(const GSList*)': src/desktop-style.cpp:429:59: error: 'isnan' was not declared in this scope src/desktop-style.cpp: In function 'int objects_query_strokewidth(GSList*, SPStyle*)': src/desktop-style.cpp:731:22: error: 'isnan' was not declared in this scope src/desktop-style.cpp: In function 'int objects_query_fontnumbers(GSList*, SPStyle*)': src/desktop-style.cpp:969:25: error: 'isnan' was not declared in this scope src/desktop-style.cpp: In function 'int objects_query_blur(GSList*, SPStyle*)': src/desktop-style.cpp:1459:41: error: 'isnan' was not declared in this scope
Same build failure with r10621 on Mac OS X 10.5.8 (i386), GCC 4.2.1
~suv
On 09/06/2011 01:33 AM, Alvin Penner wrote:
attempting to compile rev 10621, I get
Make error line 289: problem compiling: src/desktop-style.cpp: In function 'gdouble stroke_average_width(const GSList*)': src/desktop-style.cpp:429:59: error: 'isnan' was not declared in this scope
That's caused by my commit, apparently. At my PC it compiled just fine. I will look into this tonight
Diederik
2011/9/6 Diederik van Lierop <mail@...1689...>:
On 09/06/2011 01:33 AM, Alvin Penner wrote:
attempting to compile rev 10621, I get
Make error line 289: problem compiling: src/desktop-style.cpp: In function 'gdouble stroke_average_width(const GSList*)': src/desktop-style.cpp:429:59: error: 'isnan' was not declared in this scope
That's caused by my commit, apparently. At my PC it compiled just fine. I will look into this tonight
To fix it, #include <2geom/math-utils.h> and use the compatibility macro IS_NAN instead of isnan (the latter might not be defined sometimes)
Regards, Krzysztof
participants (4)
-
Alvin Penner
-
Diederik van Lierop
-
Krzysztof Kosiński
-
~suv