-
Notifications
You must be signed in to change notification settings - Fork 143
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
error: declaration of ‘use_UnorderedPointwise_with_hash_tables’ shadows a member of 'this' #156
Comments
@cpaolini , it looks like this is an issue with GTest rather than libserial... I cannot reproduce the error on Ubuntu 19.10 with GTest 1.8.1 but your reporting did alert me to the fact that Gtest has jumped from 1.8.1 to 1.10.0, and v1.10 is not immediately compatible. I will put some work into updating the unit tests to use GTest 1.10.0, but it might take some time. I'll report back as I make progress. In the meantime, here is a WIP branch you are free to work from as well: https://github.com/crayzeewulf/libserial/tree/gtest_update I'll keep everyone posted with any updates. -Mark |
Thank you. I switched to the gtest_update branch, but am now having a missing declaration issue [paolini@kon libserial]$ ./compile.sh
|
Build error on CentOS release 6.10 (Final):
error: declaration of ‘use_UnorderedPointwise_with_hash_tables’ shadows a member of 'this'
-- Build files have been written to: /home/paolini/libserial/build/gtest/src/GTestExternal-build
[ 15%] Performing build step for 'GTestExternal'
Scanning dependencies of target gtest
[ 12%] Building CXX object googlemock/gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 25%] Linking CXX static library libgtest.a
[ 25%] Built target gtest
Scanning dependencies of target gmock
[ 37%] Building CXX object googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
cc1plus: warnings being treated as errors
In file included from /home/paolini/libserial/build/gtest/src/GTestExternal/googlemock/include/gmock/gmock-spec-builders.h:71,
from /home/paolini/libserial/build/gtest/src/GTestExternal/googlemock/include/gmock/gmock-generated-function-mockers.h:44,
from /home/paolini/libserial/build/gtest/src/GTestExternal/googlemock/include/gmock/gmock.h:62,
from /home/paolini/libserial/build/gtest/src/GTestExternal/googlemock/src/gmock-all.cc:39:
/home/paolini/libserial/build/gtest/src/GTestExternal/googlemock/include/gmock/gmock-matchers.h: In member function ‘testing::internal::PointwiseMatcher<TupleMatcher, RhsContainer>::operator testing::Matcher() const’:
/home/paolini/libserial/build/gtest/src/GTestExternal/googlemock/include/gmock/gmock-matchers.h:3028: error: declaration of ‘use_UnorderedPointwise_with_hash_tables’ shadows a member of 'this'
make[5]: *** [googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o] Error 1
make[4]: *** [googlemock/CMakeFiles/gmock.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [gtest/src/GTestExternal-stamp/GTestExternal-build] Error 2
make[1]: *** [CMakeFiles/GTestExternal.dir/all] Error 2
make: *** [all] Error 2
[paolini@host libserial]$
The text was updated successfully, but these errors were encountered: