当前位置:网站首页>Solve the problem of compiling and installing gdb-10.1 unistd.h:663:3: error: #error “Please include config.h first.”
Solve the problem of compiling and installing gdb-10.1 unistd.h:663:3: error: #error “Please include config.h first.”
2022-07-30 03:44:00 【Xiao~~】
Recently installed the C++ compilation environment in Arch, I thought it would be solved directly by pacman -S cmake gdb, but when I configured the environment in clionIt was prompted that the versions of cmake and gdb are too high, so I had to download them from the official websites of cmake and gdb. The official website of cmake provides binary files, and you can directly call them by decompressing them in a directory.And gdb needs to be compiled by itself, here is gdb-10.1.
As usual, pass ./configure, make,
CXX nat/amd64-linux-siginfo.oIn file included from /usr/include/bits/sigstksz.h:24,from /usr/include/signal.h:315,from ../gnulib/import/signal.h:52,from /ironwood1/sourceware-git/rawhide-gnulib/bld/../../worktree-gnulib/gdbserver/../gdb/nat/amd64-linux-siginfo.c:20:../gnulib/import/unistd.h:663:3: error: #error "Please include config.h first."663 | #error "Please include config.h first."^~~~~ The reason is because the header file introduced by glic-2.33 has changed. To solve this problem, you only need to open ./gdb-10.1/gdb/nat/amd64-linux-siginfo.c , put
#include #include "gdbsupport/common-defs.h" Modified to
#include "gdbsupport/common-defs.h"#include Recompile and install, the problem is solved.
边栏推荐
猜你喜欢

使命、愿景、价值观到底有什么区别

NLP Natural Language Processing (2)

WeChat second-hand transaction small program graduation design finished works (8) graduation design thesis template

小程序毕设作品之微信二手交易小程序毕业设计成品(2)小程序功能

【GPU并行计算】利用OpenCL&OpenCLUtilty进行GPU并行计算

SQL 入门之第一讲——MySQL 8.0.29安装教程(windows 64位)

朴素贝叶斯分类

数据湖:数据集成工具DataX

Small application project works WeChat integral mall small program of graduation design (4) the opening report of finished product
发给你的好友,让 TA 请你吃炸鸡!
随机推荐
小程序毕设作品之微信积分商城小程序毕业设计成品(7)中期检查报告
curl命令获取外网ip
传输层详解
Record NLP various resource URLs
Overview of Federated Learning (1) - Background, Definition and Value of Federated Learning
redis的学习_基础部分
淘宝H5接口获取app数据6.0格式
3.nodejs--modularization
Hystrix service circuit breaker
Software testing interview questions and answer analysis, the strongest version in 2022
Summary of Rpc and gRpc Introduction
MySQL之数据查询(分类汇总与排序)
gnss rtcm rtklib Ntrip...
【Node访问MongoDB数据库】
BindingExpression path error: ‘selectMenusList‘ property not found on ‘object‘ ‘‘ViewModel“
MySQ deadlock
LoadBalancer load balancing
第51篇-知乎请求头参数分析【2022-07-28】
(六)《数电》——二极管与CMOS门电路(入门)
Send it to your friends and let TA treat you to fried chicken!