yhirose/cpp-httplib

MinGW make error, Windows platform.

Wq-dd opened this issue · 2 comments

I included httplib.h in my cpp file. And after cmake -G "MinGW Makefiles", I use make to compile my app. I get ther following error.

httplib.h:2819:14: error: '::CreateFile2' has not been declared; did you mean 'CreateFileW'?
2819 |   hFile_ = ::CreateFile2(wpath.c_str(), GENERIC_READ, FILE_SHARE_READ,

Does this project cannot be compiled using mingw? Please help.

Please see #1824.