嗨 我正在从Linux移植到Visual C++。当我编写代码时,它显示VC++不知道这个pthread.h头文件。由于代码中存在变量“pthread_mutex_t”,因此我无法对其进行注释。我该怎么办 ? VC++是否具有相同的标题?pthread.h标题问题
凯文
嗨 我正在从Linux移植到Visual C++。当我编写代码时,它显示VC++不知道这个pthread.h头文件。由于代码中存在变量“pthread_mutex_t”,因此我无法对其进行注释。我该怎么办 ? VC++是否具有相同的标题?pthread.h标题问题
凯文
我不认为你会除非你使用Cygwin的或类似的东西在Windows上找到并行线程。尝试Windows特定CriticalSection的:http://msdn.microsoft.com/en-us/library/ms682530(v=vs.85).aspx
或者使用升压,应在Windows和UNIX工作:http://www.boost.org/doc/libs/release/doc/html/thread/synchronization.html
在http://stackoverflow.com/questions/2403536/pthreads-in-visual-c看看的类似的问题。 – Dan 2011-03-02 03:20:55
谢谢,我会看看! – kevin 2011-03-02 03:24:51