gpt4 book ai didi

c++ - Linux OpenSuse c++ 编译器问题。 (无法初始化节调试器的解压缩状态)

转载 作者:塔克拉玛干 更新时间:2023-11-03 07:39:21 35 4
gpt4 key购买 nike

我在vmware上安装了Linux opensuse,想在终端编译C++程序。我从这里安装了 gcc c++ 编译器

https://software.opensuse.org/package/gcc-c++

但即使在编译简单的 hello world 代码时,我仍然无法编译并出现某种错误:

#include <iostream>
using namespace std;

int main() {
cout << "Hello, World!";
return 0; }

这是我遇到的错误

vaibhaw@linux-xn99:~/CPP> vi helloworld.cpp vaibhaw@linux-xn99:~/CPP>
g++ helloworld.cpp
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc/x86_64-suse-linux/8/libgcc.a(_muldi3.o): unable to
initialize decompress status for section .debug_info
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc/x86_64-suse-linux/8/libgcc.a(_muldi3.o): unable to
initialize decompress status for section .debug_info
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc/x86_64-suse-linux/8/libgcc.a(_muldi3.o): unable to
initialize decompress status for section .debug_info
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc/x86_64-suse-linux/8/libgcc.a(_muldi3.o): unable to
initialize decompress status for section .debug_info
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc/x86_64-suse-linux/8/libgcc.a(_muldi3.o): unable to
initialize decompress status for section .debug_info
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc/x86_64-suse-linux/8/libgcc.a(_muldi3.o): unable to
initialize decompress status for section .debug_info
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc/x86_64-suse-linux/8/libgcc.a(_muldi3.o): unable to
initialize decompress status for section .debug_info
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc/x86_64-suse-linux/8/libgcc.a(_muldi3.o): unable to
initialize decompress status for section .debug_info

最佳答案

一个简单的“gcc-c++ 中的 zypper”会从安装和更新存储库中提取所有需要的包。无需使用 software.opensuse.org 网站。

关于c++ - Linux OpenSuse c++ 编译器问题。 (无法初始化节调试器的解压缩状态),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54925333/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com