Closed mosynaq closed 6 years ago
This is caused by the fact that localtime_r is not available on Windows -- we use localtime_s for Visual C++, but not for TDM-GCC. I am unsure if localtime_s is available in TDM-GCC, but it should according to time.h header from mingw64-runtime.
Could you please try changing the line https://github.com/ufal/udpipe/blob/ff0bc77d48549446523c7149307e93c2c22bb3ca/src/rest_server/microrestd/rest_server/rest_server.cpp#L519 to
#if defined(_WIN32) && !defined(__CYGWIN__)
If it works, please write me, and I will commit the change permanently.
Thanks! It worked for me!
Thanks, I released a bugfix release of MicroRestD and updated it in UDPipe master.
Hi! I succeeded compiling the
exe
part of the package usingmingw32-make BITS=64 PLATFORM=win-vs -j8
but it seems that there is a problem with the REST Server part. I issuemingw32-make server BITS=64 PLATFORM=win-gcc
but I get the following error:It looks a flag like
-fpermissive
should be passed but I have no idea how.