|
From: Keith M. <kei...@us...> - 2010-07-09 13:01:04
|
On Friday 09 July 2010 11:14:22 Stefano Sabatini wrote: > /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 > ... > -lpthreadVC2 -lws2_32 -lwsock32 > ... > > *** Warning: linker path does not have real file for library > -lpthreadVC2. > ... > > libpthread-dll is installed, and indeed I can see the file > /mingw/bin/libpthread-2.dll. But, you are not asking the linker to use this library; you are asking for libpthreadVC2.dll, which you presumably do not have. > I have no clue about what the warnings message means with "real > file for library". > > Help to interpret the message and possibly fix the failure is much > appreciated. We supply libpthread-2.dll as a prerequisite for GCC-4.5; if you want to link to it directly, you need -lpthread-2, not -lpthreadVC2. Preferred is to install the complementary dev package, which provides the import library, libpthread.dll.a, which is selected by -lpthread: -lpthreadVC2 -> libpthreadVC2.dll.a, (or libpthreadVC2.a) -lpthread -> libpthread.dll.a, (or libpthread.a) -- Regards, Keith. |