[MEncoder-users] Compiling in Windows

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Feb 14 17:04:35 CET 2009


On Sat, Feb 14, 2009 at 09:33:43AM -0600, James Hastings-Trew wrote:
> I do have a includes/pthread.h and a lib/libpthreadGC2.a file in my 
> setup, but examining the configure.log file I see this:
> 
> ============ Checking for pthread ============
> 
> #include <pthread.h>
> void* func(void *arg) { return arg; }
> int main(void) { pthread_t tid; return pthread_create(&tid, 0, func, 0) 
> == 0 ? 0 : 1; }
> 
> gcc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 
> -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer 
> -I.    -lwinmm -lws2_32   -o /tmp/mplayer-conf-7739-3396.exe 
> /tmp/mplayer-conf-2683-3396.c -lpthreadGC2
> C:/DOCUME~1/James/LOCALS~1/Temp/ccfFHeL0.o:mplayer-conf-2683-3396.c:(.text+0x44): 
> undefined reference to `_imp__pthread_create'
> collect2: ld returned 1 exit status
> 
> and a bunch of variations on that...

Hm, something is not quite right with the libpthreadGC2 you have I
think. Maybe a pre- or self-compiled version of pthread will help, but i
can't really tell, I try to avoid compiling things on Windows (it works
well and easy once you have it set up, but for anything special the way
there can be long).



More information about the MEncoder-users mailing list