Link errors in dbus-glib binding

Erik van Pienbroek erik at vanpienbroek.nl
Thu Jan 22 08:30:15 UTC 2009


Op donderdag 22-01-2009 om 09:42 uur [tijdzone +0200], schreef Ryan
McDougall:
> Very strange. Putting in the following silly hack just under the headers:
> 
> #ifdef G_OS_WIN32
> #define _FOO_ windows;
> #else
> #define _FOO_ notwindows;
> #endif
> _FOO_
> 
> results in:
> 
> i686-pc-mingw32-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I..
> -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -DDBUS_COMPILATION=1 -DDBUS_LOCALEDIR=\"/usr/local/share/locale\"
> -DDBUS_API_SUBJECT_TO_CHANGE=1   -g -O2 -Wall -Wchar-subscripts
> -Wmissing-declarations -Wmissing-prototypes -Wnested-externs
> -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -MT
> dbus-binding-tool-glib.o -MD -MP -MF .deps/dbus-binding-tool-glib.Tpo
> -c -o dbus-binding-tool-glib.o dbus-binding-tool-glib.c
> dbus-binding-tool-glib.c:48: warning: data definition has no type or
> storage class
> dbus-binding-tool-glib.c:48: warning: type defaults to 'int' in
> declaration of 'notwindows'
> 
> Which means G_OS_WIN32 is not being set...
> 
> Ideas where is should be set, or what's gone wrong?

It looks like something went wrong during the ./configure phase. Could
you send us the config.log or put it online somewhere?

Regards,

Erik van Pienbroek





More information about the mingw mailing list