2
我使用vim + mingw,不知何故,終端仍然是窗口命令。
所以我谷歌它,並使用薄荷。但是當運行vim時,它會一直掛起直到我鍵入C-c。
我找到this page ,和wana嘗試winpty。
但是當我編譯它,它出來:mingw ld找不到一些存在於搜索路徑中的庫
$ 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
然後我嘗試gcc -lpthread --verbose
,它能夠找到pthread.a。
然後我嘗試ld -lpthread --verbose
,輸出
==================================================
attempt to open /mingw/mingw32/lib/libpthread.dll.a failed
attempt to open /mingw/mingw32/lib/pthread.dll.a failed
attempt to open /mingw/mingw32/lib/libpthread.a failed
attempt to open /mingw/mingw32/lib/pthread.lib failed
attempt to open /mingw/mingw32/lib/libpthread.dll failed
attempt to open /mingw/mingw32/lib/pthread.dll failed
attempt to open /mingw/mingw32/lib\libpthread.a failed
attempt to open /mingw/lib/libpthread.dll.a failed
attempt to open /mingw/lib/pthread.dll.a failed
attempt to open /mingw/lib/libpthread.a failed
attempt to open /mingw/lib/pthread.lib failed
attempt to open /mingw/lib/libpthread.dll failed
attempt to open /mingw/lib/pthread.dll failed
attempt to open /mingw/lib\libpthread.a failed
attempt to open /usr/local/lib/libpthread.dll.a failed
attempt to open /usr/local/lib/pthread.dll.a failed
attempt to open /usr/local/lib/libpthread.a failed
attempt to open /usr/local/lib/pthread.lib failed
attempt to open /usr/local/lib/libpthread.dll failed
attempt to open /usr/local/lib/pthread.dll failed
attempt to open /usr/local/lib\libpthread.a failed
attempt to open /lib/libpthread.dll.a failed
attempt to open /lib/pthread.dll.a failed
attempt to open /lib/libpthread.a failed
attempt to open /lib/pthread.lib failed
attempt to open /lib/libpthread.dll failed
attempt to open /lib/pthread.dll failed
attempt to open /lib\libpthread.a failed
attempt to open /usr/lib/libpthread.dll.a failed
attempt to open /usr/lib/pthread.dll.a failed
attempt to open /usr/lib/libpthread.a failed
attempt to open /usr/lib/pthread.lib failed
attempt to open /usr/lib/libpthread.dll failed
attempt to open /usr/lib/pthread.dll failed
attempt to open /usr/lib\libpthread.a failed
attempt to open /mingw/mingw32/lib/libpthread.dll.a failed
attempt to open /mingw/mingw32/lib/pthread.dll.a failed
attempt to open /mingw/mingw32/lib/libpthread.a failed
attempt to open /mingw/mingw32/lib/pthread.lib failed
attempt to open /mingw/mingw32/lib/libpthread.dll failed
attempt to open /mingw/mingw32/lib/pthread.dll failed
attempt to open /mingw/mingw32/lib\pthread.lib failed
attempt to open /mingw/lib/libpthread.dll.a failed
attempt to open /mingw/lib/pthread.dll.a failed
attempt to open /mingw/lib/libpthread.a failed
attempt to open /mingw/lib/pthread.lib failed
attempt to open /mingw/lib/libpthread.dll failed
attempt to open /mingw/lib/pthread.dll failed
attempt to open /mingw/lib\pthread.lib failed
attempt to open /usr/local/lib/libpthread.dll.a failed
attempt to open /usr/local/lib/pthread.dll.a failed
attempt to open /usr/local/lib/libpthread.a failed
attempt to open /usr/local/lib/pthread.lib failed
attempt to open /usr/local/lib/libpthread.dll failed
attempt to open /usr/local/lib/pthread.dll failed
attempt to open /usr/local/lib\pthread.lib failed
attempt to open /lib/libpthread.dll.a failed
attempt to open /lib/pthread.dll.a failed
attempt to open /lib/libpthread.a failed
attempt to open /lib/pthread.lib failed
attempt to open /lib/libpthread.dll failed
attempt to open /lib/pthread.dll failed
然後我嘗試find /mingw -name *pthread*
輸出
$ 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
哦,上帝,這裏是邪惡? \
和/
?
helppppppppppp:| |