Error building modules on Ubuntu 18.04

Started by wombats, July 19, 2018, 16:40:40

Previous topic - Next topic

wombats

I downloaded the "BlitzMax Linux.x64 v0.93.3.21" release. When I try to build modules, I get the following error:

/.../BlitzMax_linux_x64_0.93.3.21/mod/gtk.mod/gtk3maxgui.mod/gtkglue.c: In function ‘bmx_gtk3_gtkdesktop_gethertz’:
/.../Downloads/BlitzMax_linux_x64_0.93.3.21/mod/gtk.mod/gtk3maxgui.mod/gtkglue.c:30:2: error: unknown type name ‘Return’
  Return rate / 1000;
  ^~~~~~
/.../Downloads/BlitzMax_linux_x64_0.93.3.21/mod/gtk.mod/gtk3maxgui.mod/gtkglue.c:30:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘/’ token
  Return rate / 1000;
              ^
Build Error: failed to compile (256) /.../Downloads/BlitzMax_linux_x64_0.93.3.21/mod/gtk.mod/gtk3maxgui.mod/gtkglue.c
Process complete


How do I fix this? I ran the command to install the necessary dependencies.

markcwm


wombats

I have that installed.

It compiles in release mode, but not debug. What could cause that?

markcwm

It sounds like a bug in the gtk module, you could post an issue on Github if Brucey doesn't respond soon.