Closed pmor13 closed 11 months ago
Hi,
The function is not a part of C++ standard, but, it is a part of POSIX.
I was not able to get this error when using the following command line:
g++-12 -std=c++17 -Wall -Wextra -pedantic -Werror -I../.. elfdump.cpp -o elfdump
The library was checked by g++, clang++ and MSVS C++ compilers on Intel processors. What processor architecture you compile for?
In GNU header file string.h, availability of strnlen()
is managed by define __USE_XOPEN2K8
.
Please see dedicated thread at StackOverflow
Due to no activity, I'm closing the issue. Feel free to reopen if required.
Consider avoiding extensions. An ISO C++ compiler is not required to support extensions.
On Sun, Jul 23, 2023, 3:58 PM Serge Lamikhov-Center < @.***> wrote:
Closed #122 https://github.com/serge1/ELFIO/issues/122 as completed.
— Reply to this email directly, view it on GitHub https://github.com/serge1/ELFIO/issues/122#event-9892735352, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDAC232KM5SOND6RNOIIZTXRUNX5ANCNFSM6AAAAAAXO7YAOI . You are receiving this because you authored the thread. Message ID: @.***>
The issue is addressed in commit 089160c
The elfio.pdf says:
Well, ISO C++ does not have
strnlen
.Hence an ISO C++ compiler (e.g.
g++ -std=c++17
) won't build ELFIO: