gdb编译报错,错误提示“/gnulib/import/unistd.h:135:3: error: #error "Please include config.h”
解决办法如下:
修改源码路径下的gdb/nat/amd64-linux-siginfo.c文件,将 Include "gdbsupport/common-defs.h" 移动到 #include <signal.h> 之前,再保存重新编译;
修改前:
修改后:
参考:https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=8488c357ce4fc309d49c7b0224cf9574b68e8116
标签:Please,编译,gdb,报错,error,include From: https://www.cnblogs.com/visio/p/18278273