Mahesh Kumar
Mahesh Kumar

Reputation: 7

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

Upvotes: 0

Views: 4328

Answers (2)

Geri Papp
Geri Papp

Reputation: 28

Try to avoid using spaces in your file or directory name. If any of it contains spaces, than you should put it between "" marks.

Upvotes: 1

ikegami
ikegami

Reputation: 385496

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"

Upvotes: 4

Related Questions