| [ 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: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#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 ]
|
| |