[Kst] Fwd: random KST compiling note

Barth Netterfield barth.netterfield at utoronto.ca
Mon Nov 11 18:58:41 UTC 2013


Nicolas,

Do you think that one of your recent changes may have introduced the problem 
below on macs?

if this looks ok, can you push the change?

cbn

----------  Forwarded Message  ----------

Subject: random KST compiling note
Date: November 11, 2013, 01:46:52 PM
From: Zigmund Kermish <zkermish at princeton.edu>
To: Barth Netterfield <netterfield at astro.utoronto.ca>

Hi Barth,

I just re-compiled KST on my mac after a bunch of upgrades, and thought I'd
let you know I had to implement the following change for it to compile
without error:

diff --git a/src/datasources/ascii/kst_atof.cpp
b/src/datasources/ascii/kst_atof.cpp
index 645d752..e1c735b 100644
--- a/src/datasources/ascii/kst_atof.cpp
+++ b/src/datasources/ascii/kst_atof.cpp
@@ -18,6 +18,7 @@

 #include <math.h>
 #include <ctype.h>
+#include <locale.h>

 #include <QLocale>
 #include <QTime>

---------------

I'm not sure it if the above addition if #include <locale.h> is the correct
way to go about this (the errors I was getting were related to LC_NUMERIC
being undefined), but it compiled fine after being added.  Let me know if
this is the correct fix and/or if I should forward the info to someone else.

Ziggy
-----------------------------------------
-- 
C. Barth Netterfield
416-845-0946



More information about the Kst mailing list