On Mon, May 12, 2014, at 01:03 PM, Johan Engelen wrote:
 
I found the problem.
MinGW's stdlib.h is doing this:
#define strtod __strtod
 
Hence, you can no longer use strtod from another namespace; you'd get:
src/widgets/ege-paint-def.cpp:247:34: error: '__strtod' is not a member of 'Glib
::Ascii'
                     double dbl = Glib::Ascii::strtod(srgb.substr(numPos + 3));
                                  ^
(after reordering the include files, I got this error, which made me realize a macro is causing trouble)
 
 
Turns out we don't needto include <stdlib.h> in that particular file. (at least not for my builds). If we do need it, we should add
#undef ...
after including it.
 
 
Great!!! It's good to have that problem pinpointed, and so quickly. The only downside is that now I don't need to finish and send the mail I was working on in regards to possible details to check. :-)
 
Your mail will definitely be a helpful reference if we bump into similar issues in other files.
 
--
Jon A. Cruz
jon@...18...