Comments (1)
I confirm that on Armbian (lates version)
seems to be a --Werror=deprecated-declarations thing
[ 60%] Building CXX object tests/CMakeFiles/orbit-t.dir/testcase_reader.cpp.o /home/pi/libpredict/tests/testcase_reader.cpp: In function ‘std::string& ltrim(std::string&)’: /home/pi/libpredict/tests/testcase_reader.cpp:35:93: error: ‘std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = int; _Result = int]’ is deprecated: use 'std::function' instead [-Werror=deprecated-declarations] 35 | s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspace)))); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ In file included from /usr/include/c++/12/string:48, from /home/pi/libpredict/tests/testcase_reader.h:4, from /home/pi/libpredict/tests/testcase_reader.cpp:1: /usr/include/c++/12/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ /home/pi/libpredict/tests/testcase_reader.cpp:35:70: error: ‘constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = pointer_to_unary_function<int, int>]’ is deprecated: use 'std::not_fn' instead [-Werror=deprecated-declarations] 35 | s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspace)))); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here 1046 | not1(const _Predicate& __pred) | ^~~~ /home/pi/libpredict/tests/testcase_reader.cpp: In function ‘std::string& rtrim(std::string&)’: /home/pi/libpredict/tests/testcase_reader.cpp:41:84: error: ‘std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = int; _Result = int]’ is deprecated: use 'std::function' instead [-Werror=deprecated-declarations] 41 | s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), s.end()); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ /home/pi/libpredict/tests/testcase_reader.cpp:41:61: error: ‘constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = pointer_to_unary_function<int, int>]’ is deprecated: use 'std::not_fn' instead [-Werror=deprecated-declarations] 41 | s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), s.end()); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here 1046 | not1(const _Predicate& __pred) | ^~~~ In file included from /usr/include/c++/12/vector:70, from /home/pi/libpredict/tests/testcase_reader.h:5: /usr/include/c++/12/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const double&}; _Tp = double; _Alloc = std::allocator<double>]’: /usr/include/c++/12/bits/vector.tcc:439:7: note: parameter passing for argument of type ‘std::vector<double>::iterator’ changed in GCC 7.1 439 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/vector:64: In member function ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = double; _Alloc = std::allocator<double>]’, inlined from ‘void TestCaseReader::loadFromFile(const char*)’ at /home/pi/libpredict/tests/testcase_reader.cpp:185:17: /usr/include/c++/12/bits/stl_vector.h:1287:28: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<double*, std::vector<double> >’ changed in GCC 7.1 1287 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ cc1plus: all warnings being treated as errors make[2]: *** [tests/CMakeFiles/orbit-t.dir/build.make:90: tests/CMakeFiles/orbit-t.dir/testcase_reader.cpp.o] Fehler 1 make[1]: *** [CMakeFiles/Makefile2:287: tests/CMakeFiles/orbit-t.dir/all] Fehler 2 make: *** [Makefile:146: all] Fehler 2
from libpredict.
Related Issues (20)
- Please add cmake options enabling/disabling static and shared libraries HOT 4
- Help needed for use in windows 10+MATLAB
- WGS84 zenith position of the sun & moon
- WGS84 day/night terminator
- International designator in predict_orbital_elements misses termination for long designators
- Is there a specified version for ARM Cortex M HOT 1
- Julien date HOT 6
- predict_julian_date_t is not a julian date
- building on Mac HOT 3
- building on RPi4 and buster gets compiler errors; but completes! HOT 3
- gcc-12.1.1 -Werror doesn't like your tests HOT 1
- Contributor agreement, thomasing
- Contributor agreement, kvamtroe
- Contributor agreement, bjorgan HOT 1
- Contributor agreement, core-dd
- Contributor agreement, nickoe
- Build C++ with -Wall and -Werror
- Max elevation unit test slow for Molniya 1 and Sirius 1 HOT 2
- src/julian_date.c needs "#include <time.h>" for gmtime_r HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libpredict.