Unable to compile glib 2.29.12 in MinGW/MSYS



My environment: MinGW+MSYS on WinXP/SP3.
make fails on glib/gatomic.c:

Creating library file: .libs/libglib-2.0.dll.a
.libs/gatomic.o: In function `g_atomic_int_get':
C:\dev\glib-2.29.12\glib/gatomic.c:473: undefined reference to `MemoryBarrier'
.libs/gatomic.o: In function `g_atomic_pointer_get':
C:\dev\glib-2.29.12\glib/gatomic.c:539: undefined reference to `MemoryBarrier'
.libs/gatomic.o: In function `g_atomic_int_set':
C:\dev\glib-2.29.12\glib/gatomic.c:482: undefined reference to `MemoryBarrier'
.libs/gatomic.o: In function `g_atomic_int_and':
C:\dev\glib-2.29.12\glib/gatomic.c:516: undefined reference to `_InterlockedAnd'
.libs/gatomic.o: In function `g_atomic_int_or':
C:\dev\glib-2.29.12\glib/gatomic.c:523: undefined reference to `_InterlockedOr'
.libs/gatomic.o: In function `g_atomic_int_xor':
C:\dev\glib-2.29.12\glib/gatomic.c:530: undefined reference to `_InterlockedXor'
.libs/gatomic.o: In function `g_atomic_pointer_set':
C:\dev\glib-2.29.12\glib/gatomic.c:550: undefined reference to `MemoryBarrier'
.libs/gatomic.o: In function `g_atomic_pointer_and':
C:\dev\glib-2.29.12\glib/gatomic.c:579: undefined reference to `_InterlockedAnd'
.libs/gatomic.o: In function `g_atomic_pointer_or':
C:\dev\glib-2.29.12\glib/gatomic.c:590: undefined reference to `_InterlockedOr'
.libs/gatomic.o: In function `g_atomic_pointer_xor':
C:\dev\glib-2.29.12\glib/gatomic.c:601: undefined reference to `_InterlockedXor'
collect2: ld returned 1 exit status
make[2]: *** [libglib-2.0.la] Error 1

How to fix it?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]