FLTK logo

STR #3096

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 1.3 | SVN ⇄ GIT ]

STR #3096

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:3 - Moderate, e.g. unable to compile the software
Scope:2 - Specific to an operating system
Subsystem:OS support
Summary:fl_default_cursor not declared in Fl_win32.cxx; causes "LNK2001: unresolved external symbol" in Visual Studio
Version:1.3-current
Created By:roukaour
Assigned To:ossman
Fix Version:1.3-current (SVN: v10213)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#1 roukaour
11:31 Jun 29, 2014
Line 95 of FL/win32.H declares fl_default_cursor as extern:
    extern FL_EXPORT HCURSOR fl_default_cursor;

Back in r10146, line 1530 of Fl_win32.cxx declared fl_default_cursor:
    HCURSOR fl_default_cursor;
And line 1579 initialized it:
    wcw.hCursor = fl_default_cursor = LoadCursor(NULL, IDC_ARROW);
But in r10210 neither of these lines is present.

And since line 322 of Fl_Gl_Window.cxx references fl_default_cursor:
    if (Fl_X::i(this)->cursor && Fl_X::i(this)->cursor != fl_default_cursor) {
This causes Visual Studio 2012 on Windows 7 (64-bit) to issue a linker error when compiling a program that uses fltkgl.lib:
    fltkgld.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol "struct HICON__ * fl_default_cursor" (?fl_default_cursor@@3PEAUHICON__@@EA)

When I edited Fl_win32.cxx to declare and initialize fl_default_cursor, as r10146 used to, my program compiled and ran successfully.
 
 
#2 cand
06:15 Aug 21, 2014
Fixed in Subversion repository.

Looks like this was fixed in June 30. Please reopen if needed.
 
     

Return to Bugs & Features ]

 
 

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