-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
build example error on gcc 4.8 . #2333
Comments
Thanks. which compiler version? |
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) and the spdlog version:1.10 |
I dont have gcc 4.8 to reproduce. Please open a pr with a fix. |
open a pr?
What's mean?
What can to do for you?
|
Create a pull request with the fix. |
According to the gcc support doc, the __has_include macro support required gcc 5.0 and up.
发自我的手机
…-------- 原始邮件 --------
发件人: ***@***.***
日期: 2022年4月9日周六 19:49
收件人: gabime/spdlog ***@***.***>
主 题: 回复:[gabime/spdlog] build example error on gcc 4.8 . (Issue #2333)
open a pr?
What's mean?
What can to do for you?
|
so maybe surround with ifdef? |
it works on gcc version 8.3.1 20191121, +// __has_include feature require c++17 standard include#endif I think that the user_defined_example requre the higher gcc version to support the template specialization. |
what was the solution here for building on gcc < 9? Just to upgrade gcc? |
in file: bin_to_hex.h
#if defined(__has_include) && __has_include()
include
#endif
error: missing binary operator before token "("
#if defined(__has_include) && __has_include()
The text was updated successfully, but these errors were encountered: