-3 c bash terminal windows-10 visual-studio-code
无法在Windows的带有-Wall -pedantic -ansi标志的Visual Studio Code终端上执行程序。现在的赋值程序只是一个简单的C语言中的“ Hello World”主结构
我试过在其他文件夹上使用这些标志,它们在VS Code上可以正常工作,但在我想要的文件路径上却不能。
gcc -Wall -pednatic -ansi -o q1 -c Question1.c
Run Code Online (Sandbox Code Playgroud)
这是我在文件夹中的Visual Studio Code终端上执行的操作 .../Assignment_1$
-bash: ./q1: cannot execute binary file: Exec format error
Run Code Online (Sandbox Code Playgroud)
当我做的是什么 ./q1