[Kst] Solaris compile problem...
Brisset, Nicolas
Nicolas.Brisset at eurocopter.com
Wed Feb 1 09:33:11 CET 2006
> Does this patch help? It's quick-and-dirty. I'll clean it
> up in 1.2.1.
That's what I first tried, but it leads to a linking error because
KST::NOPOINT is defined in both kstvector.cpp and kstrvector.cpp.
Finallly, I just used the following:
> svn diff kstrvector.cpp
Index: kstrvector.cpp
===================================================================
--- kstrvector.cpp (revision 504047)
+++ kstrvector.cpp (working copy)
@@ -29,6 +29,11 @@
#include "kstdebug.h"
#include "kstrvector.h"
+#ifndef NAN
+double NAN = 0.0/0.0; // NaN
+#endif
+
+
// ReqNF <=0 means read from ReqF0 to end of File
// ReqF0 < means start at EndOfFile-ReqNF.
//
This works, even though a global KST::NOPOINT definition would certainly
be cleaner :-)
More information about the Kst
mailing list