Tests do not compile on Ubuntu due to a missing semicolon in the lambdas.

6 views
Skip to first unread message

Gonzalo Garramuño

unread,
Dec 23, 2025, 6:14:00 PM (2 days ago) Dec 23
to fltkc...@googlegroups.com
/home/gga/code/applications/mrv2/Linux-vulkan-amd64/Release/deps/FLTK/src/FLTK/build_vk_wayland/test/preferences.cxx:132:4:
error: expected ‘;’ before ‘}’ token
  132 |   }
      |    ^
      |    ;
  133 | }
      | ~
/home/gga/code/applications/mrv2/Linux-vulkan-amd64/Release/deps/FLTK/src/FLTK/build_vk_wayland/test/preferences.cxx:
In function ‘void cb_wShave(Fl_Check_Button*, void*)’:
/home/gga/code/applications/mrv2/Linux-vulkan-amd64/Release/deps/FLTK/src/FLTK/build_vk_wayland/test/preferences.cxx:159:4:
error: expected ‘;’ before ‘}’ token
  159 |   }
      |    ^
      |    ;
  160 | }
      | ~

melcher....@googlemail.com

unread,
Dec 23, 2025, 8:10:16 PM (2 days ago) Dec 23
to fltk.coredev
Thanks for reporting this. I need a bit more context please, like 8 lines before and after the error. Fluid has a new feature where it handles lambda expressions. So either your setup is catching the wrong version of Fluid, or your compiler is not C++11 compatible - or something else, for which  need the context. Thanks.

Albrecht Schlosser

unread,
Dec 24, 2025, 10:27:00 AM (2 days ago) Dec 24
to fltkc...@googlegroups.com
On 12/24/25 00:13 Gonzalo Garramuño wrote:
/home/gga/code/applications/mrv2/Linux-vulkan-amd64/Release/deps/FLTK/src/FLTK/build_vk_wayland/test/preferences.cxx:132:4: error: expected ‘;’ before ‘}’ token
  132 |   }
      |    ^
      |    ;
  133 | }
      | ~ 

Gonzalo, please use an original FLTK build (w/o your Vulkan mods) if you report potential bugs, and - as Matthias wrote - please provide more context.

In my current FLTK build everything is fine.


/home/gga/code/applications/mrv2/Linux-vulkan-amd64/Release/deps/FLTK/src/FLTK/build_vk_wayland/test/preferences.cxx: In function ‘void cb_wShave(Fl_Check_Button*, void*)’:
/home/gga/code/applications/mrv2/Linux-vulkan-amd64/Release/deps/FLTK/src/FLTK/build_vk_wayland/test/preferences.cxx:159:4: error: expected ‘;’ before ‘}’ token
  159 |   }
      |    ^
      |    ;
  160 | }
      | ~


There is no `cb_wShave` in the generated `test/preferences.cxx` of current FLTK from Git. This has obviously been replaced by a Lambda expression.

Gonzalo Garramuño

unread,
Dec 24, 2025, 12:20:33 PM (2 days ago) Dec 24
to 'melcher....@googlemail.com' via fltk.coredev
Yes.  I think you got it what the problem was.  I have an older fluid in
~/bin and it is taking precedence over the build one of the latest FLTK.

--
ggar...@gmail.com

Gonzalo Garramuno

unread,
Dec 24, 2025, 12:36:59 PM (2 days ago) Dec 24
to fltk.coredev
BTW, Albretcht, it was from the master branch of FLTK.  I keep a branch pointing to upstream.  The cb_wShave did have an actual lambda expression.  I am away from my Ubuntu box.  I'll try again as soon as I can.

Gonzalo Garramuño

unread,
Dec 24, 2025, 12:57:23 PM (2 days ago) Dec 24
to fltk.coredev

The mystery is indeed resolved.  In my script, I was *NOT* building fluid and thus, it was grabbing the one in ~/bin/ which did not have the lambda changes.

Sorry for the incorrect bug report. 

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkcoredev/9905a7b0-1033-4815-8b00-d87c733da3aen%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages