FL_DEPRECATED in Fl_Text_Buffer.H macro fails on macOS

5 views
Skip to first unread message

Gonzalo Garramuno

unread,
Feb 2, 2023, 4:44:56 PM2/2/23
to fltkc...@googlegroups.com
In file included from /Users/gga/code/applications/mrv2/mrv2/lib/mrvWidgets/mrvTextDisplay.cpp:7:
/Users/gga/code/applications/mrv2/BUILD-Darwin-amd64/Release/install/include/FL/Fl_Text_Buffer.H:168:17: error: expected parameter declarator
FL_DEPRECATED("Please use selected(startpos, endpos) instead.",
^
/Users/gga/code/applications/mrv2/BUILD-Darwin-amd64/Release/install/include/FL/Fl_Text_Buffer.H:168:17: error: expected ')'
/Users/gga/code/applications/mrv2/BUILD-Darwin-amd64/Release/install/include/FL/Fl_Text_Buffer.H:168:16: note: to match this '('
FL_DEPRECATED("Please use selected(startpos, endpos) instead.",
^
/Users/gga/code/applications/mrv2/BUILD-Darwin-amd64/Release/install/include/FL/Fl_Text_Buffer.H:168:3: error: C++ requires a type specifier for all declarations
FL_DEPRECATED("Please use selected(startpos, endpos) instead.",
^
/Users/gga/code/applications/mrv2/BUILD-Darwin-amd64/Release/install/include/FL/Fl_Text_Buffer.H:169:69: error: use of undeclared identifier 'startpos'
int position(int *startpos, int *endpos) const) { return selected(startpos, endpos); } ^
/Users/gga/code/applications/mrv2/BUILD-Darwin-amd64/Release/install/include/FL/Fl_Text_Buffer.H:169:79: error: use of undeclared identifier 'endpos'
int position(int *startpos, int *endpos) const) { return selected(startpos, endpos); } ^


Gonzalo Garramuno
ggar...@gmail.com




Gonzalo Garramuno

unread,
Feb 2, 2023, 5:02:23 PM2/2/23
to fltkc...@googlegroups.com


> El 2 feb. 2023, a las 18:44, Gonzalo Garramuno <ggar...@gmail.com> escribió:
>
> In file included from /Users/gga/code/applications/mrv2/mrv2/lib/mrvWidgets/mrvTextDisplay.cpp:7:
> /Users/gga/code/applications/mrv2/BUILD-Darwin-amd64/Release/install/include/FL/Fl_Text_Buffer.H:168:17: error: expected parameter declarator
> FL_DEPRECATED("Please use selected(startpos, endpos) instead.",
>

Fl_Text_Buffer.H is missing:

#include "fl_attr.h"


Gonzalo Garramuno
ggar...@gmail.com




melcher....@googlemail.com

unread,
Feb 2, 2023, 5:11:30 PM2/2/23
to fltk.coredev
Thank you. I am on it RN.

melcher....@googlemail.com

unread,
Feb 2, 2023, 5:14:42 PM2/2/23
to fltk.coredev
Fixed in 8178d005de4d19243b89edca8f4b9c526ea8dfe0

Reply all
Reply to author
Forward
0 new messages