Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
g++ -std=c++11 -pthread -O3 -g0 -Wall -Wno-unused -Wno-sign-compare -Wno-reorder -Wno-comment -c -o dns.o dns.cpp
g++ -std=c++11 -pthread -O3 -g0 -Wall -Wno-unused -Wno-sign-compare -Wno-reorder -Wno-comment -c -o bitcoin.o bitcoin.cpp
g++ -std=c++11 -pthread -O3 -g0 -Wall -Wno-unused -Wno-sign-compare -Wno-reorder -Wno-comment -c -o netbase.o netbase.cpp
In file included from netbase.cpp:13:
strlcpy.h:27:15: error: ‘size_t strlcpy(char, const char, size_t)’ redeclared inline without ‘gnu_inline’ attribute
27 | inline size_t strlcpy(char *dst, const char src, size_t siz)
| ^~~~~~~
In file included from /usr/include/features.h:502,
from /usr/include/x86_64-linux-gnu/c++/13/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:679,
from /usr/include/c++/13/bits/requires_hosted.h:31,
from /usr/include/c++/13/string:38,
from netbase.h:7,
from netbase.cpp:6:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:150:1: note: ‘size_t strlcpy(char, const char, size_t)’ previously defined here
150 | NTH (strlcpy (char restrict **dest, const char *restrict src,
| ^~~
strlcpy.h:62:15: error: ‘size_t strlcat(char, const char, size_t)’ redeclared inline without ‘gnu_inline’ attribute
62 | inline size_t strlcat(char *dst, const char *src, size_t siz)
| ^~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:167:1: note: ‘size_t strlcat(char, const char, size_t)’ previously defined here
167 | NTH (strlcat (char *restrict **dest, const char *restrict src,
| ^~~~~
make: *** [Makefile:8: netbase.o] Error 1
fixed the error