On 18.01.2012 10:56, MacArthur, Ian (SELEX GALILEO, UK) wrote:
>
> Anybody (Albrecht?) using a "recent" mingw with fltk?

Yep.

$ gcc --version
gcc.exe (GCC) 4.6.1
$ uname -a
MINGW32_NT-6.1 MYPC 1.0.16(0.48/3/2) 2010-09-29 00:07 i686 Msys

> I am not (I still use some antique mingw...) but one of the guys here
> has been, and he's encountering some weird errors.

Currently it's really easy (at least easier than before) to install
a current MinGW/MSYS version, and you can manage to install them both
in parallel w/o conflicts. Look for mingw-get-inst ...
http://www.mingw.org/wiki/Getting_Started

And there is mingw-get (a commandline tool) to upgrade your installation
(similar to apt-get, but not yet complete).

> In particular, he has some code that uses fltk with some STL stuff in it
> (mainly<vector>  I think, and some sorting stuff...) and his code will
> not compile, throwing errors in cpp_type_traits.h, at lines 147 and 154
> where there is a collision between two of the (many) different templates
> for __is_integer<thing>  are defined.
>
> In this case, it is seeing __is_integer<bool>  and __is_integer<char>  as
> being The Same (it looks like it thinks bool == char at this point...)
>
> Now, I can't imagine no one else has hit this, if it is truly a
> "feature" in gcc-4.6.1/mingw, so I assume it has to be some interaction
> either with our own code or with fltk.
>
> Any ideas?

Sorry, no ideas. Personally I'm not using STL in my apps at all,
but if you can't install MinGW yourself, I'd be willing to test
something, if you can supply a minimal compileable example code...

Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to