/gcc/defaults.h:126:24: 警告:invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
时间: 2024-05-27 14:11:24 浏览: 19
This warning indicates that there is an issue with the syntax used in the code. Specifically, the warning is indicating that there is an invalid suffix on a literal in the code. The C 11 standard requires that there be a space between a literal and a string macro. This warning is telling you that there is no space between the literal and the string macro in the code, which is not compliant with the C 11 standard. To fix this warning, you should add a space between the literal and the string macro in the code.
相关问题
/scripts/gcc-version.sh: 26: ./scripts/gcc-version.sh: aarch64-linux-gnugcc: not found
这个错误提示表示你的脚本中使用了aarch64-linux-gnugcc命令,但是系统找不到这个命令。这可能是因为你的系统中没有安装这个命令,或者路径不正确。
你可以尝试使用以下命令来安装aarch64-linux-gnugcc:
```
sudo apt-get install gcc-aarch64-linux-gnu
```
如果已经安装了这个命令,那么可能是路径不正确。你可以尝试使用以下命令来查找路径:
```
whereis aarch64-linux-gnu-gcc
```
然后将路径添加到你的脚本中,例如:
```
export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
```
记得将路径替换成你自己的路径。
离线下载 http://mirror.hust.edu.cn/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz
很抱歉,作为一个文本AI模型,我无法直接进行文件下载。但是,你可以通过使用工具(例如wget或curl)在命令行中进行离线下载。你可以尝试以下命令:
对于wget:
```
wget http://mirror.hust.edu.cn/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz
```
对于curl:
```
curl -O http://mirror.hust.edu.cn/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz
```
请确保你在终端或命令提示符下运行这些命令,并且具有适当的网络连接。下载完成后,你将在当前目录中找到名为"gcc-9.2.0.tar.gz"的文件。