【发布时间】:2018-05-02 19:33:17
【问题描述】:
当我通过 cc hello_world.c 在“hello_world.c”下面编译时,
它会生成一个 'a.exe' 而不是 'a.out'
#include <stdio.h>
main()
{
printf("hello, world\n");
}
- “a.out”和“a.exe”有什么区别?
- 为什么我得到的是“a.exe”而不是“a.out”?
【问题讨论】:
-
这取决于您的编译器及其设置。说明编译器及其设置
-
因为可执行文件在 Windows 上有 .exe 扩展名,而在其他平台上没有。
-
很抱歉,我如何检查编译器的版本?我在 Windows 10 上安装了 Visual Studio 2015,并将代码编译为“cc hello_world.c”
标签: c compilation