Hello,

I have installed agar 1.3.3 and the Pthreads-win32 librairies on windows XP, by
downloading the "Windows / i386 (MinGW32): agar-1.3.3-mingw32-i386.tar.gz"
version and the "pthreads-w32-2-8-0-release.exe" version.

I Use "CodeBlocks 1.0rc2" and I have put all the .h files in the
CodeBlocks\mingw32\include directory, and the .a files in the
CodeBlocks\mingw32\lib directory. In codeBlocks, I have linked the libag_core.a,
libag_gui.a and libpthreadGC2.a files with -lpthreadGC2 command.

The compilation of the project is ok, but not the linking !
There are the followings errors (just an extract) : 

CodeBlocks\mingw32\lib\libag_gui.a(combo.o):combo.c:(.text+0x169): undefined
reference to `_imp__pthread_mutex_lock'
....................
CodeBlocks\mingw32\lib\libag_gui.a(view.o):view.c:(.text+0xb7): undefined
reference to `SDL_GetRGB'
....................
CodeBlocks\mingw32\lib\libag_gui.a(tlist.o):tlist.c:(.text+0x62b): undefined
reference to `_imp__pthread_mutex_unlock'
....................
CodeBlocks\mingw32\lib\libag_gui.a(mspinbutton.o):mspinbutton.c:(.text+0x77c):
undefined reference to `_imp__pthread_mutex_lock'
...................
CodeBlocks\mingw32\lib\libag_core.a(object.o):object.c:(.text+0x68d): undefined
reference to `_imp__pthread_mutex_unlock'
...................
CodeBlocks\mingw32\lib\libag_core.a(dso.o):dso.c:(.text+0x63a): undefined
reference to `_imp__pthread_mutex_unlock'
collect2: ld returned 1 exit status

Does someone know how to fix these errors ?
Thank you.


_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to