Open rubenwardy opened 4 years ago
Windows compilations proves to be an ongoing issue for Loguru. Microsoft has in their infinitesimal wisdom decided to take standard function names and deprecate them and/or rename them, and do so differently for different version of their compiler. We seem to be stuck in a loop of "here is a PR that fixes Windows compilation for me, but breaks it for someone else". We either need a better CI with many versions of MSVC, or a dedicated champion for getting Loguru to work well on Windows.
Since I I don't even have a Windows installation I will just watch on from the sidelines and merge PRs that people send in. So long as they don't break the Mac/*nix builds, I'm good :)
I also don't have Windows, my technique for supporting it is a mixture of CI and praying
I've fixed my CI build by reverting the commit I linked, the old getenv version compiles fine. When I need to test the Windows version or give it to people then I'll have to fix the issue properly. My project is a personal project so may never happen :)
I'm getting this fixed on MinGW-W64 when I replace line 661 with #ifdef _MSC_VER
so it only detects if it's compiling it on MSVC.
I'm getting this fixed on MinGW-W64 when I replace line 661 with
#ifdef _MSC_VER
so it only detects if it's compiling it on MSVC.
Thanks, this also fixed the issue for me too
I'm getting this fixed on MinGW-W64 when I replace line 661 with
#ifdef _MSC_VER
so it only detects if it's compiling it on MSVC.
Thanks, this solved it for me.
Hey, thanks for making this library! I thought I'd update it today, but I now have this compile error when compiling for Windows:
I include loguru.hpp like this:
I've modified
loguru.cpp
to include the above file rather than loguru.hpp, in order to get the correct settingsThe Windows build environment can be reproduced here: https://gitlab.com/rubenwardy/docker-sfml-rvwp/blob/master/install_mingw.sh
Toolchain: