Bonjour la liste

(la m�me question a �t� pos�e en https://lists.debian.org/debian-user.../msg00061.html ....)

Comment utiliser correctement la fonction add_main_option_entry en GTkmm4

Regardez le code C++ (libre) en https://github.com/RefPerSys/gtk4gui...rps_gtk.cc#L86

Si on remplace le #if 0 par un #if 1 il ne compile plus.g++ -fPIE -Wall -Wextra -O1 -I/usr/include/gtkmm-4.0 -I/usr/lib/x86_64-linux-gnu/gtkmm-4.0/include -I/usr/include/giomm-2.68 -I/usr/lib/x86_64-linux-gnu/giomm-2.68/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glibmm-2.68 -I/usr/lib/x86_64-linux-gnu/glibmm-2.68/include -I/usr/include/sigc++-3.0 -I/usr/lib/x86_64-linux-gnu/sigc++-3.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/graphene-1.0 -I/usr/lib/x86_64-linux-gnu/graphene-1.0/include -I/usr/include/cairomm-1.16 -I/usr/lib/x86_64-linux-gnu/cairomm-1.16/include -I/usr/include/pangomm-2.48 -I/usr/lib/x86_64-linux-gnu/pangomm-2.48/include -I/usr/include/gtk-4.0/unix-print -mfpmath=sse -msse -msse2 -pthread -I/usr/include/jsoncpp -DGIT_ID=\"1eb421591bb7e1e5bf24e1622a72f2e82c30ad29+\" -DSHORTGIT_ID=\"1eb421591bb7+\" -DGTKRPS_HOST=\"rimski.lesours\" -DGTKRPS_ARCH=\"x86_64\" -DGTKRPS_OPERSYS=\"GNU_Linux\" -c -o mainrps_gtk.o mainrps_gtk.cc
mainrps_gtk.cc:85:2: warning: #warning help needed here to parse program arguments [-Wcpp]
85 | #warning help needed here to parse program arguments
| ^~~~~~~
mainrps_gtk.cc: In function �int main(int, char**)�:
mainrps_gtk.cc:87:42: error: �OPTION_TYPE_BOOL� is not a member of �Gtk�
87 | gtkrps_app->add_main_option_entry(Gtk::OPTION_TYPE_BOOL, "version", 'V',
| ^~~~~~~~~~~~~~~~
mainrps_gtk.cc:89:55: error: �OPTION_TYPE_STRING� is not a member of �Gtk::Application�
89 | gtkrps_app->add_main_option_entry(Gtk::Application::OPTION_TYPE_STRING, "fifo-prefix", 'F',
| ^~~~~~~~~~~~~~~~~~
make: *** [<builtin>: mainrps_gtk.o] Error 1

Un grand merci pour votre aide. je suis sous Debian/x86-64 et le moteur d'inf�rences libre RefPerSys est mon projet principal.

Librement

Basile Starynkevitch <[email protected]>
(only mine opinions / les opinions sont miennes uniquement)
92340 Bourg-la-Reine, France
web page: starynkevitch.net/Basile/
See/voir: https://github.com/RefPerSys/RefPerSys