Link errors in dbus-glib binding

Ryan McDougall sempuki1 at gmail.com
Wed Jan 21 13:57:45 UTC 2009


The following error:

i686-pc-mingw32-gcc -g -O2 -Wall -Wchar-subscripts
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -o
dbus-binding-tool.exe dbus-binding-tool-glib.o dbus-glib-tool.o
./.libs/libdbus-gtool.a -L/lib ./.libs/libdbus-glib-1.a
-L/usr/i686-pc-mingw32/sys-root/mingw/lib -ldbus-1
/usr/i686-pc-mingw32/sys-root/mingw/lib/libgobject-2.0.dll.a
/usr/i686-pc-mingw32/sys-root/mingw/lib/libglib-2.0.dll.a -lws2_32
-lole32 /usr/i686-pc-mingw32/sys-root/mingw/lib/libintl.dll.a
/usr/i686-pc-mingw32/sys-root/mingw/lib/libiconv.dll.a
/usr/i686-pc-mingw32/sys-root/mingw/lib/libexpat.dll.a
-L/usr/i686-pc-mingw32/sys-root/mingw/lib
-L/usr/i686-pc-mingw32/sys-root/mingw/lib
Info: resolving _g_ascii_table by linking to __imp__g_ascii_table (auto-import)
Info: resolving _g_threads_got_initialized by linking to
__imp__g_threads_got_initialized (auto-import)
Info: resolving _g_thread_use_default_impl by linking to
__imp__g_thread_use_default_impl (auto-import)
Info: resolving _g_thread_functions_for_glib_use by linking to
__imp__g_thread_functions_for_glib_use (auto-import)
/usr/lib/gcc/i686-pc-mingw32/4.3.2/../../../../i686-pc-mingw32/bin/ld:
warning: auto-importing has been activated without
--enable-auto-import specified on the command line.
This should work unless it involves constant data structures
referencing symbols from auto-imported DLLs.
dbus-binding-tool-glib.o: In function `dbus_binding_tool_output_glib_server':
/home/ryanm/Code/dbus-glib/dbus/dbus-binding-tool-glib.c:802:
undefined reference to `_g_file_open_tmp'
/home/ryanm/Code/dbus-glib/dbus/dbus-binding-tool-glib.c:830:
undefined reference to `_g_spawn_async_with_pipes'
dbus-glib-tool.o: In function `main':
/home/ryanm/Code/dbus-glib/dbus/dbus-glib-tool.c:392: undefined
reference to `_g_io_channel_new_file'
./.libs/libdbus-gtool.a(dbus-gloader-expat.o): In function
`description_load_from_file':
/home/ryanm/Code/dbus-glib/dbus/dbus-gloader-expat.c:176: undefined
reference to `_g_file_get_contents'
collect2: ld returned 1 exit status

The link errors are to functions in glib.

[ryanm at localhost dbus-glib]$ rpm -qa |grep mingw32 |grep glib
mingw32-glib2-2.18.1-2.fc10.noarch
mingw32-glibmm24-2.18.1-2.fc10.noarch


Any ideas/hints?

Cheers,



More information about the mingw mailing list