unrecognized command line option '-m64'
时间: 2024-05-31 13:15:14 浏览: 5
这个错误通常是因为你的编译器不支持 "-m64" 这个选项。这个选项是用于指定编译器生成 64 位代码的。
如果你使用的是 GCC 编译器,确保你的版本支持 "-m64" 这个选项。你可以尝试使用 "-m32" 选项来生成 32 位代码,或者升级到支持 64 位的 GCC 版本。
如果你使用的是其他编译器,可以查看编译器文档,了解是否支持 "-m64" 这个选项,以及如何正确地使用它。
相关问题
unrecognized command-line option ‘-m64’
这个错误提示通常表示你的编译器不支持 `-m64` 这个选项。这个选项是为了让编译器生成 64 位的代码。如果你想编译 64 位的代码,你可以尝试使用一个支持这个选项的编译器,比如 GCC 或者 Clang。
如果你不需要编译 64 位的代码,你可以尝试把 `-m64` 这个选项从编译命令中删除,或者替换成一个支持的选项。具体来说,如果你在使用 GCC,你可以使用 `-m32` 选项来生成 32 位的代码;如果你在使用 Clang,你可以使用 `-m32` 或者 `-march=i386` 来生成 32 位的代码。
gcc: error: unrecognized command line option '-m64'
This error message typically indicates that the "-m64" option is not supported by the version of gcc installed on your system.
This option is used to generate code for a 64-bit architecture. If your system is a 32-bit system, then this option may not be available.
To resolve this issue, you can try removing the "-m64" option from your command line arguments and see if the code compiles without it. Alternatively, you can try upgrading your gcc installation to a version that supports the "-m64" option.
相关推荐
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)