Link errors in dbus-glib binding

Ryan McDougall sempuki1 at gmail.com
Thu Jan 22 08:39:35 UTC 2009


On Thu, Jan 22, 2009 at 10:30 AM, Erik van Pienbroek
<erik at vanpienbroek.nl> wrote:
> 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

Thanks for taking a look at it: http://pastebin.com/f2607af34

Cheers,



More information about the mingw mailing list