c - mingw ld cannot find some library which is exist in the search path -
i'm using vim+mingw, somehow, terminal still window command.
google it, , using mintty. when run vim, hang forever until type c-c.
find this page ,and wana try winpty.
when compile , comes out:
$ make linking ../build/console.exe c:\mingw32\bin\ld.exe: cannot find -lpthread c:\mingw32\bin\ld.exe: cannot find -luser32 c:\mingw32\bin\ld.exe: cannot find -lkernel32 c:\mingw32\bin\ld.exe: cannot find -ladvapi32 c:\mingw32\bin\ld.exe: cannot find -lshell32 collect2: ld returned 1 exit status make: *** [../build/console.exe] error 1
then try gcc -lpthread --verbose
, able find pthread.a.
tryld -lpthread --verbose
,the output
================================================== attempt open /mingw/mingw32/lib/libpthread.dll.a failed attempt open /mingw/mingw32/lib/pthread.dll.a failed attempt open /mingw/mingw32/lib/libpthread.a failed attempt open /mingw/mingw32/lib/pthread.lib failed attempt open /mingw/mingw32/lib/libpthread.dll failed attempt open /mingw/mingw32/lib/pthread.dll failed attempt open /mingw/mingw32/lib\libpthread.a failed attempt open /mingw/lib/libpthread.dll.a failed attempt open /mingw/lib/pthread.dll.a failed attempt open /mingw/lib/libpthread.a failed attempt open /mingw/lib/pthread.lib failed attempt open /mingw/lib/libpthread.dll failed attempt open /mingw/lib/pthread.dll failed attempt open /mingw/lib\libpthread.a failed attempt open /usr/local/lib/libpthread.dll.a failed attempt open /usr/local/lib/pthread.dll.a failed attempt open /usr/local/lib/libpthread.a failed attempt open /usr/local/lib/pthread.lib failed attempt open /usr/local/lib/libpthread.dll failed attempt open /usr/local/lib/pthread.dll failed attempt open /usr/local/lib\libpthread.a failed attempt open /lib/libpthread.dll.a failed attempt open /lib/pthread.dll.a failed attempt open /lib/libpthread.a failed attempt open /lib/pthread.lib failed attempt open /lib/libpthread.dll failed attempt open /lib/pthread.dll failed attempt open /lib\libpthread.a failed attempt open /usr/lib/libpthread.dll.a failed attempt open /usr/lib/pthread.dll.a failed attempt open /usr/lib/libpthread.a failed attempt open /usr/lib/pthread.lib failed attempt open /usr/lib/libpthread.dll failed attempt open /usr/lib/pthread.dll failed attempt open /usr/lib\libpthread.a failed attempt open /mingw/mingw32/lib/libpthread.dll.a failed attempt open /mingw/mingw32/lib/pthread.dll.a failed attempt open /mingw/mingw32/lib/libpthread.a failed attempt open /mingw/mingw32/lib/pthread.lib failed attempt open /mingw/mingw32/lib/libpthread.dll failed attempt open /mingw/mingw32/lib/pthread.dll failed attempt open /mingw/mingw32/lib\pthread.lib failed attempt open /mingw/lib/libpthread.dll.a failed attempt open /mingw/lib/pthread.dll.a failed attempt open /mingw/lib/libpthread.a failed attempt open /mingw/lib/pthread.lib failed attempt open /mingw/lib/libpthread.dll failed attempt open /mingw/lib/pthread.dll failed attempt open /mingw/lib\pthread.lib failed attempt open /usr/local/lib/libpthread.dll.a failed attempt open /usr/local/lib/pthread.dll.a failed attempt open /usr/local/lib/libpthread.a failed attempt open /usr/local/lib/pthread.lib failed attempt open /usr/local/lib/libpthread.dll failed attempt open /usr/local/lib/pthread.dll failed attempt open /usr/local/lib\pthread.lib failed attempt open /lib/libpthread.dll.a failed attempt open /lib/pthread.dll.a failed attempt open /lib/libpthread.a failed attempt open /lib/pthread.lib failed attempt open /lib/libpthread.dll failed attempt open /lib/pthread.dll failed
then try find /mingw -name *pthread*
the output
$ find /mingw -name *pthread* /mingw/bin/pthreadgc2.dll /mingw/bin/pthreadgce2.dll /mingw/include/pthread.h /mingw/lib/libpthread.a /mingw/lib/libpthread.dll.a /mingw/lib/libpthreadgc2.a /mingw/lib/libpthreadgc2.dll.a /mingw/lib/libpthreadgce2.dll.a /mingw/mingw32/include/pthread.h /mingw/mingw32/lib/libpthread.a /mingw/mingw32/lib/libpthread.dll.a /mingw/mingw32/lib/libpthreadgc2.a /mingw/mingw32/lib/libpthreadgc2.dll.a /mingw/mingw32/lib/libpthreadgce2.dll.a /mingw/msys/1.0/include/pthread.h /mingw/share/doc/pthreads-w32 /mingw/share/doc/pthreads-w32/2.9.1/readme.pthreads-w32-2.9.1-1-mingw32 /mingw/var/cache/mingw-get/packages/pthreads-w32-2.9.1-1-mingw32-dev.tar.lzma /mingw/var/cache/mingw-get/packages/pthreads-w32-2.9.1-1-mingw32-dll.tar.lzma /mingw/var/cache/mingw-get/packages/pthreads-w32-2.9.1-1-mingw32-doc.tar.lzma /mingw/var/cache/mingw-get/packages/pthreads-w32-2.9.1-1-mingw32-lic.tar.lzma /mingw/var/lib/mingw-get/data/mingw32-pthreads-w32.xml
oh, god, evil? \
, /
?
helppppppppppp :|
in case interested, check config script. thisissue comes when mistake *nix \ windows /
Comments
Post a Comment