在 CentOS 系統中,您可以通過以下命令查看 GCC 版本:
打開終端(Terminal)。
輸入以下命令并按回車鍵:
gcc --version
這將顯示 GCC 的版本信息,例如:
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
在這個例子中,GCC 的版本是 4.8.5。請注意,您的版本可能會有所不同。