You need set -lintl flag to linker.

2009/9/16 Галымжан Кожаев <[email protected]>

> When building under Windows XP, why doesn't pkg-config point to
> include directory, containing libintl.h? when i try to compile using
> '#include <glibmm/i18n.h>', compiler says: "In file included from
> C:/GTK/gtkmm/include/glibmm-2.4/glibmm/i18n.h:27, from gtk.cpp:7:
> C:/GTK/gtkmm/include/glib-2.0/glib/gi18n.h:25:21: libintl.h: No such
> file or directory".
> I realized that `pkg-config --libs --cflags gtkmm-2.4` doesn't point
> to 'C:/GTK/gtkmm/include' directory which contains linintl.h. I
> successfully compiled my program by passing '-IC:/GTK/gtkmm/include'
> flag to compiler manually. There isn't such problem under Linux and
> compilation is done by typing g++ gtk.cpp -o gtk `pkg-config gtkmm-2.4
> --cflags --libs`.
> I'm using MinGW g++ compiler, gtkmm-2.4 version 2.16.0, gtkmm install
> path is 'C:\gtk\gtkmm'.
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to