Am 28.07.2014 17:51, schrieb LRN: > On 28.07.2014 19:19, Mario Reichel wrote: >> After this i tried to compile gtk+ 3.13.5 with ./configure >> --host=i686-w64-mingw32 --prefix=/home/mario/build32 and >> environment variables CC, CXX und PKG_CONFIG_LIBDIR set. > >> On make i get the following and many more (error logfile is >> nearly 500kb) > >> In file included from >> /home/mario/build32/include/glib-2.0/glib/glist.h:32:0, from >> /home/mario/build32/include/glib-2.0/glib/ghash.h:33, from >> /home/mario/build32/include/glib-2.0/glib.h:50, from >> extract-strings.c:18: >> /home/mario/build32/include/glib-2.0/glib/gmem.h: In function >> ‘__declspec’: >> /home/mario/build32/include/glib-2.0/glib/gmem.h:293:10: error: >> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before >> ‘GMemVTable’ GLIB_VAR GMemVTable *glib_mem_profiler_table; ^ > > Try `make V=1 -j1`, dump output into a file, inspect the file, find > the gcc invocation that failed, copy it, cd into the build > directory where the failure occurred (i.e. where extract-strings is > being built), paste the gcc invocation command, edit it by adding a > '-E' flag and changing the output filename to something else > (instead of .o or whatever it is), then look at the output file. It > will contain preprocessed source code. Look for > glib_mem_profiler_table declaration, see what happened to it after > preprocessing. > I get this: typedef struct _GMemVTable GMemVTable; [ ... ] # 272 "/home/mario/build32/include/glib-2.0/glib/gmem.h" struct _GMemVTable { gpointer (*malloc) (gsize n_bytes); gpointer (*realloc) (gpointer mem, gsize n_bytes); void (*free) (gpointer mem); gpointer (*calloc) (gsize n_blocks, gsize n_block_bytes); gpointer (*try_malloc) (gsize n_bytes); gpointer (*try_realloc) (gpointer mem, gsize n_bytes); }; extern void g_mem_set_vtable (GMemVTable *vtable); extern gboolean g_mem_is_system_malloc (void); extern __declspec(dllimport) gboolean g_mem_gc_friendly; extern __declspec(dllimport) GMemVTable *glib_mem_profiler_table; extern void g_mem_profile (void); # 33 "/home/mario/build32/include/glib-2.0/glib/glist.h" 2 # 1 "/home/mario/build32/include/glib-2.0/glib/gnode.h" 1 # 34 "/home/mario/build32/include/glib-2.0/glib/gnode.h" typedef struct _GNode GNode; _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list