I have recently added dlib 19.1 to my project in Visual Studio 2013. I'm able to run compile the library without problem, to run the example and also to create my own console applications and make it work just fine.
But when integrating dlib to my project, I have recently faced the current error:
Error 14 error : identifier "WaitForSingleObject" is undefined \include\dlib\threads\threads_kernel_1.h 120
There are 50 errors similar to this one, all in threads_kernel_1.h
I'm looking to all project properties and didn't find anything suspicious compare to my example project that include dlib.