Hello, Programs used: - binutils-2.26 - gcc-5.3.0 - gimp-2.8.16 - mingw-w64-4.0.5 I am I cross-compiling gimp with mingw-w64 (host: i686-pc-linux-gnu, target: i686-w64-mingw32): --- $ ./configure --prefix=/usr/i686-w64-mingw32 --host=i686-w64-mingw32 --enable-introspection=no --disable-glibtest --disable-gtktest --disable-docs --without-libjpeg --disable-python --without-xmc --without-dbus --without-libzma $ make [...] CC file_wmf-file-wmf.o In file included from file-wmf.c:28:0: file-wmf.c: In function 'WinMain': ../../libgimp/gimp.h:199:39: error: '__argc' undeclared (first use in this function) return gimp_main (&PLUG_IN_INFO, __argc, __argv); \ ^ file-wmf.c:87:1: note: in expansion of macro 'MAIN' MAIN () ^ ../../libgimp/gimp.h:199:39: note: each undeclared identifier is reported only once for each function it appears in return gimp_main (&PLUG_IN_INFO, __argc, __argv); \ ^ file-wmf.c:87:1: note: in expansion of macro 'MAIN' MAIN () ^ ../../libgimp/gimp.h:199:47: error: '__argv' undeclared (first use in this function) return gimp_main (&PLUG_IN_INFO, __argc, __argv); \ ^ file-wmf.c:87:1: note: in expansion of macro 'MAIN' MAIN () ^ file-wmf.c: In function 'main': ../../libgimp/gimp.h:208:39: error: '__argc' undeclared (first use in this function) return gimp_main (&PLUG_IN_INFO, __argc, __argv); \ ^ file-wmf.c:87:1: note: in expansion of macro 'MAIN' MAIN () ^ ../../libgimp/gimp.h:208:47: error: '__argv' undeclared (first use in this function) return gimp_main (&PLUG_IN_INFO, __argc, __argv); \ ^ file-wmf.c:87:1: note: in expansion of macro 'MAIN' MAIN () ^ file-wmf.c: In function 'WinMain': ../../libgimp/gimp.h:195:20: warning: control reaches end of non-void function [-Wreturn-type] struct HINSTANCE__ *hPrevInstance, \ ^ file-wmf.c:87:1: note: in expansion of macro 'MAIN' MAIN () ^ make[3]: *** [file_wmf-file-wmf.o] Error 1 make[3]: Leaving directory `/tmp/build/gimp/gimp-2.8.16/plug-ins/common' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/build/gimp/gimp-2.8.16/plug-ins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/build/gimp/gimp-2.8.16' make: *** [all] Error 2 --- So, as you can see the problem is that __argc is undeclared at the line 199 of the libgimp/gimp.h file. In this file, I can see that the correct include is done at line 68: #include <stdlib.h> /* For __argc and __argv */ So, __argc should be declared and I don't understand why my cross-compiler is complaining. Any idea? Thank you. Best regards. _______________________________________________ gimp-developer-list mailing list List address: gimp-developer-list@xxxxxxxxx List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list