Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
570 views
in Technique[技术] by (71.8m points)

c - Compilation terminated while compiling in visual studio code

#include <stdio.h>
int main()
{
    int a = 10, b = 15, c;
    c = a + b;
    printf("%d", c);

    return 0;
}

Whenever I tried to compile it produce error

gcc.exe: error: instruction: No such file or directory
gcc.exe: error: Arthematic: No such file or directory   
gcc.exe: error: declearation: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.

Error code image


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Your shell command is malformed. You used

gcc instruction Arthematic declearation.c -o instruction Arthematic declearation

when you should have used

gcc "instruction Arthematic declearation.c" -o "instruction Arthematic declearation"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...