On 25 Mar 2012, at 06:50, David FLEURY wrote:
> 
> Hum, the code is from Fl_win32.cxx, the function is :
> Fl_X* Fl_X::make(Fl_Window* w) and try to access a protected enum.
> 
> Under VS, I don't see any link between Fl_X and Fl_Widget.
> 
> The filename is Fl_win32.cxx this is probably why it not complains under 
> Linux. It's not compiling at all.


Yeah, I get that; except that my mingw build seemed to be OK. I guess that 
maybe the gcc-derived mingw handles the visibility of enums differently or 
something? FWIW, the mingw I have is from gcc 3.4.something, so not the latest 
deal (I think mingw current is 4.5 or so...)

>>> 
>>> Second (a lot of)
>>> FL/Fl_Window.H(55): error C2487: 'no_fullscreen_y' : member of dll
>>> interface class may not be declared with dll interface
>>> FL/Fl_Window.H(55): error C2487: 'no_fullscreen_w' : member of dll
>>> interface class may not be declared with dll interface
>>> FL/Fl_Window.H(55): error C2487: 'no_fullscreen_h' : member of dll
>>> interface class may not be declared with dll interface
>>> 
>>> I think VS applies 'static' attribute only to first variable from list
>>> ('no_fullscreen_x').
>> 
>> Ah, that really is odd - that just outright looks like a compiler bug to me, 
>> then.
>> 
>> Or am I missing something here too?
> 
> Same  for me. Too early to find another reason. I will check later.


Just for the record, in case anyone got the wrong idea from my posts, I'm not 
opposed to the patch in any way; it all seems quite reasonable changes (i.e. 
the Fl_Window.H change is effectively NULL, and I don't *think* there's any 
harm in the Fl_Widget.H change, though I'm not sure about that...)
It's just that it all seemed a little odd...





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

Reply via email to