sigc++ error during GTKmm cross-compilation



Hi, I wrote simple GTKmm program from documentation example:

#include <gtkmm.h>
int main(int argc, char *argv[]){
    Gtk::Main kit(argc, argv);
    Gtk::Window window;
    Gtk::Main::run(window);
  
    return 0;
}


 and then I try to cross-compile for Windows it using mingw cross-compiler, but it fails. My command is:
i686-pc-mingw32-g++ -o test-gtk.exe main.cpp `pkg-config --cflags --libs gtkmm-2.4`

but it throws lines of errors like:
In file included from /home/michal/Dropbox/GTK/GTKmm-Devel/include/sigc++-2.0/sigc++/sigc++.h:23:0,
                 from /home/michal/Dropbox/GTK/GTKmm-Devel/include/glibmm-2.4/glibmm/dispatcher.h:24,
                 from /home/michal/Dropbox/GTK/GTKmm-Devel/include/glibmm-2.4/glibmm.h:32,
                 from /home/michal/Dropbox/GTK/GTKmm-Devel/include/gtkmm-2.4/gtkmm.h:29,
                 from main.cpp:1:
/home/michal/Dropbox/GTK/GTKmm-Devel/include/sigc++-2.0/sigc++/signal.h:1675:26: error: declaration of 'typedef sigc::signal0<T_return, T_accumulator>::slot_list_type sigc::signal0<T_return, T_accumulator>::slot_list' [-fpermissive]
/home/michal/Dropbox/GTK/GTKmm-Devel/include/sigc++-2.0/sigc++/signal.h:167:8: error: changes meaning of 'slot_list' from 'struct sigc::slot_list<sigc::slot<T_return> >' [-fpermissive]
/home/michal/Dropbox/GTK/GTKmm-Devel/include/sigc++-2.0/sigc++/signal.h:1784:26: error: declaration of 'typedef sigc::signal1<T_return, T_arg1, T_accumulator>::slot_list_type sigc::signal1<T_return, T_arg1, T_accumulator>::slot_list' [-fpermissive]
/home/michal/Dropbox/GTK/GTKmm-Devel/include/sigc++-2.0/sigc++/signal.h:167:8: error: changes meaning of 'slot_list' from 'struct sigc::slot_list<sigc::slot<T_return, T_arg1> >' [-fpermissive]
/home/michal/Dropbox/GTK/GTKmm-Devel/include/sigc++-2.0/sigc++/signal.h:1895:26: error: declaration of 'typedef sigc::signal2<T_return, T_arg1, T_arg2, T_accumulator>::slot_list_type sigc::signal2<T_return, T_arg1, T_arg2, T_accumulator>::slot_list' [-fpermissive]


and much more...
Don´t really know, what is wrong, because when compiling just with gtk.h file included everything works fine. The same for compilation of above-mentioned code for unix - it works fine.

Thank you in advance,
Michael


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]