3
我在MSVC 2010上運行pthread,並且包含pthreadVC2 .lib & .dll。 從下面的網站http://sourceware.org/pthreads-win32/ http://web.cs.du.edu/~sturtevant/pthread.html 但我得到這些錯誤 任何一個可以教育我這個pthread,pthread on windows,pthread麻煩,鏈接器錯誤,msvc 2008/2010上的pthread鏈接器錯誤
Fun_os.obj : error LNK2019: unresolved external symbol _pthread_key_create referenced in function _FUN_InThreads
Fun_os.obj : error LNK2019: unresolved external symbol _pthread_create referenced in function __FUN_ThreadCr
Fun_os.obj : error LNK2019: unresolved external symbol _pthread_attr_init referenced in function __FUN_ThreadCr
Fun_os.obj : error LNK2019: unresolved external symbol _pthread_setspecific referenced in function __FUN_sThreadEtry
Fun_os.obj : error LNK2019: unresolved external symbol _pthread_join referenced in function __FUN_ThreadJoin
此問題是[此SO問題]的副本(http://stackoverflow.com/questions/21991618/adding-extra-pthread-dll-in-visual-studio-2010?noredirect=1#comment33332168_21991618)。 –
[我如何爲Visual Studio 2005安裝pthread \ _win32(Windows pthread/posix線程庫)?](http://stackoverflow.com/questions/5654073/how-do-i-install-pthread-win32 -Windows-並行線程,POSIX線程庫換VISU) – alk