> I am getting the following compile error:
> 
> In file included from bookmarks_functions.h:16,
> from bookmarks_functions.cpp:12:
> /usr/include/FL/Fl_Preferences.H:174: error: 'FILE' has not 
> been declared
> 
> 
> This program used to compile without any problems. I am using 
> FLTK 1.3.x SVN 
> 6728
> 
> The workaround that I am using now is:
> 
> #define FILE void
> #include <FL/Fl_Preferences.H>
> #undef FILE
> 
> I'm not sure what has changed. Could it be that 
> Fl_Preferences.H is missing 
> a header file? I tried including <stdio.h> and <unistd.h> 
> before I include 
> FL/Fl_Preferences.H, but that didn't fix the problem - I 
> received the same 
> error.
> 
> The only thing that has worked in defining a dummy FILE macro 
> and then 
> undefining it (as above).
> 
> Anyone else having this problem?

Looking at the 1.1.10 / 1.3.x versions, the only non-doc change seems to
be that the following lines are removed from the file...

#  ifdef WIN32
#    include <windows.h>
#  endif // WIN32

#  include <stdio.h>
#  include "Fl_Export.H"


I guess that could be relevant, but I wonder, then, why #including
stdio.h did not just fix it?





SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to