[PATCH 00/11] C++/MinGW patches
Qian Hong
fracting@gmail.com
Tue Nov 3 12:24:00 GMT 2015
Hi Pedro,
I found the below error when cross compile with `./configure
--host=i686-w64-mingw32 --enable-build-with-cxx`:
objcopy.c: In function ‘parse_symflags’:
objcopy.c:792:7: error: implicit declaration of function ‘strndup’
[-Werror=implicit-function-declaration]
PARSE_OTHER ("before=", *other);
^
objcopy.c:774:9: error: incompatible implicit declaration of built-in
function ‘strndup’ [-Werror]
fval = strndup (s + sizeof fname - 1, len - sizeof fname + 1)
^
objcopy.c:792:7: note: in expansion of macro ‘PARSE_OTHER’
PARSE_OTHER ("before=", *other);
^
objcopy.c: In function ‘copy_main’:
objcopy.c:4085:23: error: incompatible implicit declaration of
built-in function ‘strndup’ [-Werror]
newsym->symdef = strndup (optarg, s - optarg);
^
cc1: all warnings being treated as errors
Makefile:939: recipe for target 'objcopy.o' failed
make[4]: *** [objcopy.o] Error 1
More information about the Gdb-patches
mailing list