STR #2238

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]

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
Summary:linkage specifier incorrect in Cursor.h
Created By:simulacrum111
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files

Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
#1 simulacrum111
13:38 Aug 13, 2009
MSVS 2008 - fltkdll project
FLTK 2.0 r6841

files:  cursor.h, Cursor.cxx


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.


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
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]


Comments are owned by the poster. All other content is copyright 1998-2023 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.