object-edit.cpp:842: error: `isfinite' undeclared in namespace `std'
Building inkscape-0.41 on NetBSD 1.6.2_STABLE with GCC 3.3.3.
I receive this error:
if c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/pkg/include/freetype2 -I/usr/pkg/include -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -DPOTRACE="potrace" -I/usr/pkg/include/gtk-2.0 -I/usr/pkg/lib/gtk-2.0/include -I/usr/pkg/include -I/usr/X11R6/include -I/usr/pkg/include/atk-1.0 -I/usr/pkg/include/pango-1.0 -I/usr/X11R6/include/freetype2 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/libxml2 -I/usr/pkg/include/sigc++-2.0 -I/usr/pkg/lib/sigc++-2.0/include -I/usr/pkg/include/gtkmm-2.4 -I/usr/pkg/lib/gtkmm-2.4/include -I/usr/pkg/include/glibmm-2.4 -I/usr/pkg/lib/glibmm-2.4/include -I/usr/pkg/include/gdkmm-2.4 -I/usr/pkg/lib/gdkmm-2.4/include -I/usr/pkg/include/pangomm-1.4 -I/usr/pkg/include/atkmm-1.6 -I/usr/pkg/include/gtkspell-2.0 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -O2 -s -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -MT object-edit.o -MD -MP -MF ".deps/object-edit.Tpo" -c -o object-edit.o object-edit.cpp; \ then mv -f ".deps/object-edit.Tpo" ".deps/object-edit.Po"; else rm -f ".deps/object-edit.Tpo"; exit 1; fi object-edit.cpp: In function `void sp_spiral_outer_set(SPItem*, const NR::Point&, const NR::Point&, unsigned int)': object-edit.cpp:842: error: `isfinite' undeclared in namespace `std' gmake[2]: *** [object-edit.o] Error 1
Any ideas?
(Please carbon-copy me on replies.)
Jeremy C. Reed
BSD News, BSD tutorials, BSD links http://www.bsdnewsletter.com/
For the benefit of other readers and people who search the archives:
Jeremy has since opened a bug report for this (thanks Jeremy): https://sourceforge.net/tracker/index.php?func=detail&aid=1181145&gr...
Changes have been made as a result, and I hope that these fix the problem for most people.
See also comments in the file src/isnan.h.
pjrm.
Peter Moulder wrote:
For the benefit of other readers and people who search the archives:
Jeremy has since opened a bug report for this (thanks Jeremy): https://sourceforge.net/tracker/index.php?func=detail&aid=1181145&gr...
Changes have been made as a result, and I hope that these fix the problem for most people.
See also comments in the file src/isnan.h.
Cool. Yeah, it is good to collect these floating point quirks into a common file, so that we don't need to scatter #ifdef's all over the place.
Bob
participants (3)
-
Bob Jamison
-
Jeremy C. Reed
-
Peter Moulder