编译mysql5.1.68 make时候出现./include/my_global.h:1088: 错误:对 C++ 内建类型 ‘bool’ 的重声明

本文介绍了在编译MySQL过程中遇到的“./depcomp:line512:exec:g++:notfound”错误及“../include/my_global.h:1088:错误:对C++内建类型‘bool’的重声明”的解决方法。通过安装gcc-c++并重新配置和清理编译目录,最终完成MySQL的正确编译。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

./depcomp: line 512: exec: g++: not found
make[2]: *** [my_new.o] 错误 127
make[2]: Leaving directory `/usr/local/setup/mysql-5.1.68b/mysys'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/local/setup/mysql-5.1.68b'
make: *** [all] 错误 2
[root@gameserver mysql-5.1.68b]# yum install -y gcc-c++ 


解决办法:
yum install -y gcc-c++

../include/my_global.h:1088: 错误:对 C++ 内建类型 ‘bool’ 的重声明

是的话 重新./configure  在make clean  make make install  就解决了


h:81:16: warning: catching polymorphic type ‘struct pangolin::BadInputException’ by value [-Wcatch-value=] /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h: In instantiation of ‘void pangolin::VarWrapper<T, S>::Set(const T&) [with T = bool; S = float]’: /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h:76:10: required from here /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h:81:16: warning: catching polymorphic type ‘struct pangolin::BadInputException’ by value [-Wcatch-value=] /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h: In instantiation of ‘void pangolin::VarWrapper<T, S>::Set(const T&) [with T = bool; S = long int]’: /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h:76:10: required from here /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h:81:16: warning: catching polymorphic type ‘struct pangolin::BadInputException’ by value [-Wcatch-value=] /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h: In instantiation of ‘void pangolin::VarWrapper<T, S>::Set(const T&) [with T = bool; S = int]’: /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h:76:10: required from here /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h:81:16: warning: catching polymorphic type ‘struct pangolin::BadInputException’ by value [-Wcatch-value=] /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h: In instantiation of ‘void pangolin::VarWrapper<T, S>::Set(const T&) [with T = bool; S = short int]’: /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h:76:10: required from here /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h:81:16: warning: catching polymorphic type ‘struct pangolin::BadInputException’ by value [-Wcatch-value=] /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h: In instantiation of ‘void pangolin::VarWrapper<T, S>::Set(const T&) [with T = bool; S = bool]’: /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h:76:10: required from here /home/lh/business_logic_modules/mobile_robot_platform/ros2_ws/src/calibration_cameraimu/../../../third_party/x86_64_22.04/Pangolin/include/pangolin/var/varwrapper.h:81:16: warning: catching polymorphic type ‘struct pangolin::BadInputException’ by value [-Wcatch-value=] gmake[2]: *** [CMakeFiles/calibration_cameraimu.dir/build.make:104:CMakeFiles/calibration_cameraimu.dir/src/vins_estimator/src/core/CameraIMUCalibration.cpp.o] 错误 1 gmake[2]: *** [CMakeFiles/calibration_cameraimu.dir/build.make:90:CMakeFiles/calibration_cameraimu.dir/src/vins_estimator/src/core/calibra_camera_imu.cpp.o] 错误 1 gmake[1]: *** [CMakeFiles/Makefile2:137:CMakeFiles/calibration_cameraimu.dir/all] 错误 2 gmake: *** [Makefile:146:all] 错误 2
最新发布
07-04
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值