-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Unrecognized option -mbig-obj
#1928
Comments
Those qualifiers are non-essential, a PR to remove them is welcome. Alternatively you can use GCC 4.8.1.
|
Alright I'll try and make a PR soon. I'm busy this week but you will receive it somewhere soon hopefully. |
While this issue is open anyway, I had another question regarding the insertion of the flag
As one of my contributors (@friendlyanon) mentioned:
Are we missing something here? |
Not sure what's the question, |
If I understood correctly, this variable is simply set to its initial value, so false. But when importing option(CPP-LAZY_USE_INSTALLED_FMT "Import {fmt} using find_package" NO)
if(CPP-LAZY_USE_INSTALLED_FMT)
find_package(fmt 7 REQUIRED CONFIG)
else()
set(FMT_INSTALL YES CACHE INTERNAL "" FORCE)
set(FMT_OS YES CACHE INTERNAL "")
include(FetchContent)
FetchContent_Declare(fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
GIT_TAG a581e9e5d83673fefbecb7cc6ea2514af83f77c8
UPDATE_DISCONNECTED YES)
FetchContent_MakeAvailable(fmt)
endif()
target_link_libraries(cpp-lazy INTERFACE fmt::fmt) But that gives this link error on GCC 4.8, so I was wondering if you had any pointers |
Closing as the original issue has been fixed (thanks for providing the fix). As for -fPIC, I suggest opening a separate issue if it's more than just a problem of building with inconsistent CMake flags. |
The docs says:
Portability
The library is highly portable and relies only on a small set of C++11 features:
These are available since GCC 4.8, Clang 3.0 and MSVC 19.0 (2015). For older compilers use {fmt} version 4.x which continues to be maintained and only requires C++98.
If you mean GCC 4.8.0, I think this is a small mistake because the library is not able to build because GCC 4.8.0 does not support method ref qualifiers (on line 831 format.h):
With GCC 4.8.1 installed however, building on Windows 10 with x86_64-4.8.1-release-posix-seh-rt_v3-rev2 gives:
Main.cpp:
Cmake:
Am I missing something?
The text was updated successfully, but these errors were encountered: