c++ - Using Semaphores in Visual Studio -


i'm trying use semaphores in visual studio project.

however, i error c1083: cannnot open include file: 'pthread.h': no such file or directory

is there way can download semaphores?

i've tried including pthread directory , same error

sounds trying compile *nix code on windows. not impossible, visual studio won't help.

pthreads come posix standard, , windows not support posix particularly well. efforts have been made port posix windows, cygwin being successful, , others have tried implement can in add-on libraries gcc family of compilers.

visual studio primary supports microsoft way of doing things. makes sense, that's bread , butter. posix support minimal. may have ported pthreads visual studio, cannot recommend any.

so, can either port pthread-using program or library use win32 equivalents or select different compiler toolkit wraps pthreads. may or may not trivial without looking @ code need ported.

mingw compile program or library, can't guarantee this. unix , windows worlds different guarantees. have discard visual studio ide.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -