lordglub wrote:
Hello,
i have under fedora 8 (redhat gcc4.1.2-33)
i try compile this little program :

#include <gtkmm-2.4/gtkmm/main.h>
 #include <gtkmm-2.4/gtkmm/window.h>
 int main(int argc, char **argv)
 {
 Gtk::Main app(argc, argv);
 Gtk::Window w;
 app.run(w);
 return 0;
 }

librairy used to do this are ::
pkg-config --cflags --libs gtkmm-2.4
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo
-I/usr/include/atk-1.0 -I/usr/include/gtkmm-2.4
-I/usr/lib64/gtkmm-2.4/include -I/usr/include/glibmm-2.4
-I/usr/lib64/glibmm-2.4/include -I/usr/include/gdkmm-2.4
-I/usr/lib64/gdkmm-2.4/include -I/usr/include/pangomm-1.4
-I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0
-I/usr/lib64/sigc++-2.0/include -I/usr/lib64/gtk-2.0/include
-I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0  -L/usr/lib -lgtkmm-2.4
-lgdkmm-2.4 -latkmm-1.6 -lgtk-x11-2.0 -lpangomm-1.4 -lcairomm-1.0
-lglibmm-2.4 -lsigc-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
-lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl
-lglib-2.0

but i obtened the following message ::

/usr/include/glibmm-2.4/glibmm/containerhandle_shared.h: In static member
function ‘static bool
Glib::Container_Helpers::TypeTraits<bool>::to_cpp_type(gboolean*)’:
/usr/include/glibmm-2.4/glibmm/containerhandle_shared.h:335: erreur: cast
from ‘gboolean*’ to ‘gint’ loses precision

i dont know wath is wrong ... missing libraire or ....
any idea ??

thanks

First of all, you really should be using
#include <gtkmm/main.h>
not
#include <gtkmm-2.4/gtkmm/main.h>

pkg-config should set up the include flags correctly so that you don't need to specify the gtkmm-2.4 part.

As for the error you are getting, I can't reproduce it.

--
jonner
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to