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

问题描述 投票:1回答:1

我在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
c++ compiler-errors opensuse
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.