DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2238 Version: 2.0-current MSVS 2008 - fltkdll project FLTK 2.0 r6841 files: cursor.h, Cursor.cxx Problem: The function prototype on line 18 in cursor.h is as follows - Cursor* cursor(Image*, int x, int y); The function definition in Cursor.cxx is as follows - . . . FL_API fltk::Cursor *fltk::cursor(Image *img, int x, int y) { . . . The linker complains that the definition in Cursor.cxx is a redefinition and specifies different external linkage than the prototype in cursor.h. Fix: The function prototype on line 18 in cursor.h is changed to the following - extern FL_API Cursor* cursor(Image*, int x, int y); This specifies the same linkage for the prototype and the definition. This allows the fltkdll project to be compiled with MSVS 2008. Other MSVS variants were not tested but it probable this fix is needed with them as well. Link: http://www.fltk.org/str.php?L2238 Version: 2.0-current _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
