Finally got it!
Also, use Sleep() for Windows (add #include <Windows.h>) and sleep() (add #include <unistd.h>) for UNIX-based systems.
- Put your .h files (pthread.h, semaphore.h, sched.h) into $Visual_Studio/VC/include.
- pthreadVC1.dll goes to C:/Windows. Not the best idea but I am out of time and this works.
- pthreadVC1.lib goes to $Visual_Studio/VC/lib. Also, include it in the Linker. Project Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies. Add there pthreadVC1.lib.
Also, use Sleep() for Windows (add #include <Windows.h>) and sleep() (add #include <unistd.h>) for UNIX-based systems.
No comments:
Post a Comment