Re: [sigc] sigc++ error during GTKmm cross-compilation



I haven't got mingw installed, and I have never used it, so I'm not the best person to reply.

When I compare your error messages with my file sigc++/signal.h, it does not seem to fit at all. Lines 1675, 1784, and 1895 are not even close to anything that might produce your error messages. (I'm running Ubuntu 11.10, and I've fetched libsigc++ from the git repository, and built it locally.)

If you can attach your signal.h file, I can try to understand what's wrong.
Do you use the same signal.h when you compile for Linux, and succeed? If you do, then I suppose there's nothing wrong with the header file, and I will probably not find anything that can explain your error messages.

Kjell

2012-01-05 19:25, da Eatel skrev:
 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.
I am running Fedora and PKG_CONFIG_LIBDIR set to folder with win GTKmm files.

Thank you in advance,
Michael



_______________________________________________
libsigc-list mailing list
libsigc-list gnome org
http://mail.gnome.org/mailman/listinfo/libsigc-list



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