Can I get Unix's pthread.h to compile in Windows?

后端 未结 5 836
囚心锁ツ
囚心锁ツ 2020-11-27 17:14

If I try to compile a program with

#include 

in it, I get the error:

pthread.h: No such file or directory
         


        
5条回答
  •  温柔的废话
    2020-11-27 17:15

    As @Ninefingers mentioned, pthreads are unix-only. Posix only, really.

    That said, Microsoft does have a library that duplicates pthreads:

    Microsoft Windows Services for UNIX Version 3.5

    Library Download

提交回复
热议问题