p-ranav / indicators

Activity Indicators for Modern C++
MIT License
3.04k stars 237 forks source link

Compilation errors with MinGW #94

Closed Amomum closed 3 years ago

Amomum commented 3 years ago

Errors actually come from termcolor:

``` E:\conan\.conan\data\indicators\2.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include/indicators/termcolor.hpp: In function 'std::ostream& termcolor::red(std::ostream&)': E:\conan\.conan\data\indicators\2.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include/indicators/termcolor.hpp:287:17: error: 'FOREGROUND_RED' was not declared in this scope FOREGROUND_RED ^~~~~~~~~~~~~~ E:\conan\.conan\data\indicators\2.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include/indicators/termcolor.hpp:287:17: note: the macro 'FOREGROUND_RED' had not yet been defined In file included from E:/Qt/Qt5.15/Tools/mingw810_64/x86_64-w64-mingw32/include/windows.h:74, from E:\conan\.conan\data\indicators\2.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include/indicators/terminal_size.hpp:7, from E:\conan\.conan\data\indicators\2.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include/indicators/progress_bar.hpp:12, from ..\qt_quick_test\src\logger\logger.h:7, from ..\qt_quick_test\src\logger\logger.cpp:1: E:/Qt/Qt5.15/Tools/mingw810_64/x86_64-w64-mingw32/include/wincon.h:117: note: it was later defined here #define FOREGROUND_RED 0x4 ```

If I manually update termcolor.hpp to the latest version these errors go away :)

p-ranav commented 3 years ago

Updated to later termcolor.hpp. Thanks for reporting!