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?

Alvin

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

Reply via email to