-
Notifications
You must be signed in to change notification settings - Fork 471
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
Fails to compile with clang-15 and libc++ on linux #984
Comments
As a workaround using +++ b/cmake/SociConfig.cmake
@@ -94,6 +94,7 @@ else()
set(SOCI_CXX11 ON)
set(SOCI_CXX_VERSION_FLAGS "-std=c++11")
add_definitions(-DCATCH_CONFIG_CPP11_NO_IS_ENUM)
+ add_definitions(-DCATCH_CONFIG_CPP11_NO_SHUFFLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SOCI_GCC_CLANG_COMMON_FLAGS} ${SOCI_CXX_VERSION_FLAGS}") |
Thanks for the report and the workaround. The real solution is to upgrade to a non-ancient version of CATCH which has probably fixed this already, but this won't happen in 4.0.x, so we should probably just apply this there, unless anybody sees a better solution. |
vadz
added a commit
to vadz/soci
that referenced
this issue
Sep 18, 2022
This results in build problems with clang 15 and libc++ (see SOCI#984) and also with MSVC due to the use of min/max function that are defined as macros. This is just a temporary workaround, the real solution will be to update our CATCH version.
vadz
added a commit
to vadz/soci
that referenced
this issue
Sep 18, 2022
This results in build problems with clang 15 and libc++ (see SOCI#984) and also with MSVC due to the use of min/max function that are defined as macros. This is just a temporary workaround, the real solution will be to update our CATCH version.
vadz
added a commit
to vadz/soci
that referenced
this issue
Sep 18, 2022
This results in build problems with clang 15 and libc++ (see SOCI#984) and also with MSVC due to the use of min/max function that are defined as macros. This is just a temporary workaround, the real solution will be to update our CATCH version.
vadz
added a commit
to vadz/soci
that referenced
this issue
Sep 18, 2022
This results in build problems with clang 15 and libc++ (see SOCI#984) and also with MSVC due to the use of min/max function that are defined as macros. This is just a temporary workaround, the real solution will be to update our CATCH version.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am seeing following error
it works ok when I use
-std=gnu++98
The text was updated successfully, but these errors were encountered: