| [ Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File ]
STR #2238
Application: | FLTK Library |
Status: | 5 - New |
Priority: | 3 - Moderate, e.g. unable to compile the software |
Scope: | 2 - Specific to an operating system |
Subsystem: | Unassigned |
Summary: | linkage specifier incorrect in Cursor.h |
Version: | 2.0-current |
Created By: | simulacrum111 |
Assigned To: | Unassigned |
Fix Version: | Unassigned |
Update Notification: | |
Trouble Report Files:
[ Post File ]No files
Trouble Report Comments:
[ Post Text ]
|
#1 | simulacrum111 13:38 Aug 13, 2009 |
| 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. | |
|
#2 | AlbrechtS 01:44 Aug 30, 2009 |
| This is related to STR #1385
http://www.fltk.org/str.php?L1385 | |
[ Return to Bugs & Features | Post Text | Post File ]
|
| |