-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Compiling errors in Centos 7.9 #252
Comments
These seem to have been there since C++98. What g++ version are you using? I see you are building version 0.8.7. Do you have the same problem on latest |
last main |
OK, does that mean you have a version of G++ that does not support |
g++ --version centos 7.9 default is 4.8.5 |
OK, from https://gcc.gnu.org/projects/cxx-status.html#cxx14 it looks like c++14 is only fully supported since g++ 5. |
first install blew package
then add blew content to Makefile head
last run make command. |
make
make -C src -f MakeApp.mk decpcap_test
make[1]: Entering directory
/tmp/nethogs-0.8.7/src' cc -Wall -Wextra -c decpcap.c g++ -Wall -Wextra -Wno-missing-field-initializers decpcap_test.cpp decpcap.o -o decpcap_test -lpcap -lm make[1]: Leaving directory
/tmp/nethogs-0.8.7/src'make -C src -f MakeApp.mk test
make[1]: Entering directory
/tmp/nethogs-0.8.7/src' g++ -Wall -Wextra -Wno-missing-field-initializers conninode_test.cpp -o conninode_test for test in conninode_test; do echo $test ; ./$test ; done conninode_test make[1]: Leaving directory
/tmp/nethogs-0.8.7/src'make -C src -f MakeApp.mk nethogs
make[1]: Entering directory
/tmp/nethogs-0.8.7/src' g++ -Wall -Wextra -Wno-missing-field-initializers -c packet.cpp packet.cpp: In member function ‘Packet Packet::onlySource() const’: packet.cpp:310:13: error: ‘begin’ is not a member of ‘std’ std::fill(std::begin(p.dip6.s6_addr), std::end(p.dip6.s6_addr), 0); ^ packet.cpp:310:41: error: ‘end’ is not a member of ‘std’ std::fill(std::begin(p.dip6.s6_addr), std::end(p.dip6.s6_addr), 0); ^ make[1]: *** [packet.o] Error 1 make[1]: Leaving directory
/tmp/nethogs-0.8.7/src'make: *** [nethogs] Error 2
The text was updated successfully, but these errors were encountered: