Vincent Magnin
Vincent Magnin
Still present in GTK 4.7.0 (Fedora Rawhide).
That bug is fixed in GTK 4.6.7 (tested in Fedora 36) and GTK 4.7.2 (tested in Fedora Rawhide).
Under MSYS2/Windows 10, and compiled with gfortran, gtkbuilder don't work and prints the same message. But gtkbuilder2 and gtkf-sketcher have no problem, probably because they contain the `GCC$ ATTRIBUTES DLLEXPORT`.
gtkbuilder.f90 has been removed from the gtk4 branch, as it is now a duplicate of gtkbuilder2.f90 (they were using two different GTK 3 functions, removed in GTK 4).
Same problem with GTK 4.4 and ifort 2021.4.0
After replacing `gtk_builder_add_from_file()` by `gtk_builder_new_from_file()`, the ifort 2021.4.0 error message is: ```bash (process:24055): Gtk-ERROR **: 18:43:29.082: failed to add UI from file gtkbuilder.glade: No function named `hello`. Trappe pour point...
Same error message now with GTK 4.6.2: GFortran 12.0.1 in Fedora Rawhide, GFortran 11.2.0 in FreeBSD 13. ```bash [osboxes@localhost examples]$ ./gtkbuilder2 (process:14648): Gtk-ERROR **: 14:56:45.953: failed to add UI from...
But it works under MSYS2/Windows 10, with GFortran 11.2.0 and GTK 4.6.2.
No problem with GTK 4.6.3 and GFortran 12.0.1 in latest Fedora Rawhide.
Same problem with ifx 2022.1.0 20220316 ; gtk-fortran 4.2.1, GTK 4.6.3