Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation errors with MinGW #94

Closed
Amomum opened this issue Apr 20, 2021 · 1 comment
Closed

Compilation errors with MinGW #94

Amomum opened this issue Apr 20, 2021 · 1 comment

Comments

@Amomum
Copy link

Amomum commented Apr 20, 2021

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 p-ranav closed this as completed in c338b5b May 3, 2021
@p-ranav
Copy link
Owner

p-ranav commented May 3, 2021

Updated to later termcolor.hpp. Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants