Chris Lambacher wrote:
I am trying to compile pygtk 2.5.3 on win32.  I get the following when
it tries to link gobject.pyd:

c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DPYGTK_MAJOR_VERSION=2 -DPYGTK_
MINOR_VERSION=5 -DPYGTK_MICRO_VERSION=3 -DVERSION=\"2.5.3\" -IC:/GTK/include/gli
b-2.0 -IC:/GTK/lib/glib-2.0/include -I. -Igtk -Igobject -Ic:\python24\include -I
c:\python24\PC -c gobject/pygtype.c -o build\temp.win32-2.4\Release\gobject\pygt
ype.o -mms-bitfields
writing build\temp.win32-2.4\Release\gobject\gobject.def
c:\mingw\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.4\Release\gobject
\gobjectmodule.o build\temp.win32-2.4\Release\gobject\pygboxed.o build\temp.win3
2-2.4\Release\gobject\pygenum.o build\temp.win32-2.4\Release\gobject\pygflags.o
build\temp.win32-2.4\Release\gobject\pygobject.o build\temp.win32-2.4\Release\go
bject\pygmaincontext.o build\temp.win32-2.4\Release\gobject\pygmainloop.o build\
temp.win32-2.4\Release\gobject\pygparamspec.o build\temp.win32-2.4\Release\gobje
ct\pygpointer.o build\temp.win32-2.4\Release\gobject\pygtype.o build\temp.win32-
2.4\Release\gobject\gobject.def -LC:/GTK/lib -Lc:\python24\libs -Lc:\python24\PC
Build -lgobject-2.0 -lglib-2.0 -lintl -liconv -lpython24 -lmsvcr71 -o build\lib.
win32-2.4\gobject.pyd
build\temp.win32-2.4\Release\gobject\gobjectmodule.o(.text+0x39ba):gobjectmodule
.c: undefined reference to `g_thread_init'
error: command 'gcc' failed with exit status 1


I included the compile line from the last .o file so that you can see what the compile flags are as well. Anyone have any suggestions?

Try to build with the "-enable-threading" option.

Cedric
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to