Compile dlib examples on Windows?

I am new to C ++ (a long time Lisp programmer) and am trying to compile some dlib examples on Windows using MinGW. I added dlib to PATH. Then I call g++ timer_ex.cppthe examples directory. But I get a lot of error messages.

Failed to use Visual Studio, what's the best way to compile dlib examples on Windows?

+1
source share
1 answer

Adding a folder to PATH is usually not suitable for me. Try this command instead. I just compiled an example with it without errors:

g++ timer_ex.cpp ..\dlib\all\source.cpp -I.. -luser32 -lws2_32 -lgdi32 -lcomctl32 -limm32

cryptic -I.. include. , , . - , .

, , -O3, gcc . , , .

, CMake. , . Windows, Linux, Mac OS . dlib, cmake . , make. visual studio, , cmake .

+1

All Articles