Re: [fltk.bugs] [MOD] STR #2781: dirent.h compilation error
[STR Closed w/Resolution] Link: http://www.fltk.org/str.php?L2781 Version: 1.3.0 Fix Version: None This STR has not been updated by the submitter for two or more weeks and has been closed as required by the FLTK Configuration Management Plan. If the issue still requires resolution, please re-submit a new STR. Yes, this must be specific to the OP's setup. Closing this now, since the OP didn'r reply for more than 3 weeks. Link: http://www.fltk.org/str.php?L2781 Version: 1.3.0 Fix Version: None ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
Re: [fltk.bugs] [MOD] STR #2781: dirent.h compilation error
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR Pending] Link: http://www.fltk.org/str.php?L2781 Version: 1.3.0 For the record, one of my test machines in ubuntu 11.10 and I am not seeing any problems, either with the svn repo or with the weeklies, so I don't think there is a general issue here. Maybe something is weird in the OP's setup? Link: http://www.fltk.org/str.php?L2781 Version: 1.3.0 ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
Re: [fltk.bugs] [MOD] STR #2781: dirent.h compilation error
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR Pending] Link: http://www.fltk.org/str.php?L2781 Version: 1.3.0 Meanwhile I installed Ubuntu 11.10, and I can reproduce the error message, but only if I add a *bad* preprocessor macro, as can be seen in the attached test file str_2781.cxx (see "uncomment..."). Thus, it looks as if an incompatible header file or something in your own code is introducing the error, but not FLTK's header files or code. This is from my dirent.h header file: $ cat -n /usr/include/dirent.h | grep -4 "^ 100" 96 #ifdef __USE_BSD 97 /* File types for `d_type'. */ 98 enum 99{ 100 DT_UNKNOWN = 0, 101 # define DT_UNKNOWN DT_UNKNOWN 102 DT_FIFO = 1, 103 # define DT_FIFODT_FIFO 104 DT_CHR = 2, See line #100 for the referenced error line. One possibility to get the shown error message is to define DT_UNKNOWN as a numeric constant, probably 0. Does anything in your code do this? In fact, if I uncomment "#define DT_UNKNOWN 0" in the attached test file, I get this: $ /path/to/fltk-1.3/fltk-config --compile str_2781.cxx # In file included from /path/to/fltk-1.3/FL/filename.H:98:0, from /path/to/fltk-1.3/FL/Fl_File_Browser.H:31, from /path/to/fltk-1.3/FL/Fl_File_Chooser.H:34, from str_2781.cxx:10: /usr/include/dirent.h:100:5: error: expected identifier before numeric constant /usr/include/dirent.h:100:5: error: expected â}â before numeric constant /usr/include/dirent.h:100:5: error: expected unqualified-id before numeric constant In file included from /path/to/fltk-1.3/FL/filename.H:98:0, from /path/to/fltk-1.3/FL/Fl_File_Browser.H:31, from /path/to/fltk-1.3/FL/Fl_File_Chooser.H:34, from str_2781.cxx:10: /usr/include/dirent.h:362:1: error: expected declaration before â}â token --- snip --- ... which is the same as your error messages (with slightly different line numbers, due to a newer FLTK version). Please check your code and report, if this is not the problem, and if it isn't please post a minimal code example (like mine) that shows the error. Otherwise this STR will be closed in a few days. Please report also, if this information solves your problems, so that we can close the STR. Link: http://www.fltk.org/str.php?L2781 Version: 1.3.0// // Test for STR #2781 // // uncomment the following statement to get the reported error messages: // #define DT_UNKNOWN 0 #include int main(int argc, char ** argv) { return 0; } ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
Re: [fltk.bugs] [MOD] STR #2781: dirent.h compilation error
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2781 Version: 1.3.0 I currently don't have Ubuntu 11.10 installed, and so I can't help much with the system header files. It would maybe help, if you could post the relevant part(s) of your /usr/include/dirent.h (at, before, around line 100, as pointed out by the error message). It is also possible, that you included some other files or defined some macros in your main file or your file OPENGL_viewer.h that lead to conflicts with other macros. Please try to reduce your problem to one complete and compileable source file that includes only fltk-specific header files to see if the problem persists. If it does, please post this source file to this STR so that we can see it and test. I'd also be willing to install Ubuntu 11.10 to reproduce the problem, but this will take some time - and you should confirm that your problem persists with a short demo program before. Unfortunately problems with dirent.h etc. are common, due to changes and incompatibilities in the system libraries / header files. Maybe this is another instance of incompatible changes... Link: http://www.fltk.org/str.php?L2781 Version: 1.3.0 ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
[fltk.bugs] [MOD] STR #2781: dirent.h compilation error
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2781 Version: 1.3.0 Hi all, I succesfully manage to compile my code on OSX, but then I tried to port it to Ubuntu (I'm using Ubuntu 11.10) and I get the following error: In file included from /usr/include/FL/filename.H:107:0, from /usr/include/FL/Fl_File_Browser.H:40, from /usr/include/FL/Fl_File_Chooser.H:43, from /home/ale/Documents/Projects/LTS5lib/Common/OPENGL_viewer.h:11, from /home/ale/Documents/Projects/LTS5lib/Applications/DTB/DTB_viewer/main.cxx:20: /usr/include/dirent.h:100:5: error: expected identifier before numeric constant /usr/include/dirent.h:100:5: error: expected â}â before numeric constant /usr/include/dirent.h:100:5: error: expected unqualified-id before numeric constant I'm using the FLTK library 1.3.0 installed from apt-get. Any suggestion? Thanks, Alessandro Link: http://www.fltk.org/str.php?L2781 Version: 1.3.0 ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs