
-----Original Message----- From: inkscape-devel-bounces@lists.sourceforge.net [mailto:inkscape-devel-bounces@lists.sourceforge.net] On Behalf Of Maximilian Albert Sent: zondag 18 mei 2008 15:45 To: inkscape; lib2geom-devel@lists.sourceforge.net Subject: [Inkscape-devel] isFinite() problem again
Hi all,
recently there was a discussion about name clashes involving is_finite(). The problem appeared to be solved but now I ran into it (or something similar?) again. Namely, adding the line
#include "live_effects/effect.h"
to object-edit.cpp yielded the following compile error:
object-edit.cpp: In function ‘void sp_spiral_outer_set(SPItem*, const NR::Point&, const NR::Point&, guint)’: object-edit.cpp:1121: error: ‘isFinite’ was not declared in this scope
The problem was that 2Geom did not put its "#ifndef __ISNAN_H__ #define __ISNAN_H__" in its own namespace; i.e. the defines to check whether 2geom/isnan.h was already included or not. Inkscape's isnan.h uses the same defined name to check this, so...
I updated to latest 2geom, now the problem should be solved.
Still, one cannot include 2geom files *after* including Inkscape's isnan.h; a permanent solution is to capitalize the macros in Inkscape's isnan.h.
Cheers, Johan