linking with glib-2.0 fails on mingw

Daniel <[email protected]>
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <[email protected]>
Hello!

I'm new to this mailinglist so please forgive me if this question has been asked a houndred times. However, I did check the archieves but I could not find anything useful in recent posts. I'm trying to compile the slist-test.c program in the glib-2.0.6 source distribution using gcc-3.2 from the mingw 2.0 (windows installer) distribution. This fail during linking:

$ pkg-config.exe --libs glib-2.0 --cflags glib-2.0
-ID:/msys-1/home/gnome/include/glib-2.0 -ID:/msys-1/home/gnome/lib/glib-2.0/include  -LD:/msys-1/home/gnome/lib -lglib-2.0 -lintl -liconv  

Administrator@E ~/glib-2.0.6/tests
$ gcc -otest `pkg-config.exe --cflags glib-2.0 --libs glib-2.0` -Ld:/msys-1/hom
e/gnome/lib slist-test.c

D:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccqGaaaa.o(.text+0x19f):slist-test.c: undefined reference to `g_slist_append'
D:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccqGaaaa.o(.text+0x1b7):slist-test.c: undefined reference to `g_slist_reverse'
D:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccqGaaaa.o(.text+0x1da):slist-test.c: undefined reference to `g_slist_nth'
...
...
D:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccqGaaaa.o(.text+0x449):slist-test.c: undefined reference to `g_slist_free'

This file is just an example, I can not link any glib based program. I've used the zip files found on http://www.gimp.org/~tml/gimp/win32/downloads.html

I've been told that these files are supposed to work. Have someone tried these files on mingw 2.0.0??? 

Regards

Daniel Sundberg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.