c - pthread,Windows 上的 pthread,pthread 故障,链接器错误,msvc 2008/2010 上的 pthread 链接器错误

标签 c visual-studio-2010 pthreads linker-errors pthreads-win32

我在 MSVC 2010 上运行一个 pthread,我已经包含 pthreadVC2 .lib & .dll。 来自以下网站 http://sourceware.org/pthreads-win32/ http://web.cs.du.edu/~sturtevant/pthread.html 但我收到这些错误 谁能就此教育我

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

最佳答案

对我来说this工作正常。因此,您可能需要重新检查您的项目属性并确保您在(发布/调试)模式下所做的设置以及您正在构建项目的相同模式。

关于c - pthread,Windows 上的 pthread,pthread 故障,链接器错误,msvc 2008/2010 上的 pthread 链接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21998105/

相关文章:

c - 程序全局和局部静态变量保存在哪个内存段

visual-studio-2010 - Visual Studio 错误 - "The operation cannot be completed"

multithreading - pthread_mutex_lock 返回未测试

C 删除字符串末尾的换行符,行为很奇怪

c++ - 我如何指示 Emscripten 在编译期间应将源文件放置在何处?

c - 仅分配 ~1400MB 后空间不足,而之前的可用空间明显更大

c# - 我在 Mysql 中遇到希伯来语问题。我与 Visualstudio10、连接器和 linq 一起使用。我能做些什么?

c++ - 如何使用 Visual C++ 2010 Express 设置 SAPI?

从主函数外部调用 pthread_create

c - pthread_mutex_init 上的段错误