Hi Nikita,

On 24 Mar 2012, at 21:39, Nikita Egorov wrote:

>> I don't have VS2010, so can you tell us what errors you were getting?
>> 
>> And what the last version that did work OK was?
>> 
>> 
>> Looking at the patch to Fl_Window.H, for example, it's not even obvious to 
>> me that it is actually changing anything, in so far as I understand the C++ 
>> syntax anyway... It just appears to be changing (in effect):
>> 
>>     static int x, y, w, h;
>> 
>> into:
>> 
>>    static int x;
>>    static int y;
>>    static int w;
>>    static int h;
>> 
>> So... why does VS2010 not like the first form? I don't understand...
> 
> Hi, I have just updated my fltk(1.3) sources from svn and I have the
> compilation errors with VS2010 too.
> 
> First, it is
>  src\Fl_win32.cxx(1318[and 1629]): error C2248: 'FULLSCREEN' : cannot
> access protected enumerator declared in class 'Fl_Widget'

OK - that's presumably what the patch was changing in Fl_Wideget.H, then, by 
changing the visibility of the enumerated values - though I can't see why it 
should be necessary.

I don't get any problem on OSX/Linux or with WinXX using the mingw compiler, so 
I wonder what's up with VS? I'd imagine (i.e. I have not checked...) the widget 
in question must derive from Fl_Widget, so why can it not access the enumerated 
values? Seems odd. I'm missing something here...



> 
> 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?




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

Reply via email to