When I'm trying to run code in windows 11 it's showing this error in terminal...
TERMINAL
At line:1 char:1
gcc My-c
- cd "C: /MinGW/binc/Users/DELL/Desktop/C coding/" ; if ($?)
: ObjectNot Found: (C: \MinGw\binc\U. -- sktop\C coding: String) [Set-Location], ItemNlotFoundExcep
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNĀNNNNNNNNNNNNANN
CategoryInfo
FullyQualifiedErrorId : PathNotFound, Microsoft.PowerShell.Commands.SetLocationCommand
tion
I have tried everything but nothing worked
CodePudding user response:
Download the C/C Extension. It is an extension provided by Microsoft that support visual studio code. It helps in IntelliSence, debugging and code browsing of the programming code in the visual studio. Download the C/C compilers. There are some popular compilers are: GCC on Linux GCC via Mingw-w64 on Windows Microsoft C compiler on windows Clang for XCode on MacOS
still confused?? check out.... https://www.javatpoint.com/how-to-run-a-c-program-in-visual-studio-code#:~:text=After writing the code, right,Alt + N from the button.
CodePudding user response:
If you are not able to compile the code.
and your output is like this-->
gcc.exe: error: okokok.c: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
Than what you can do is
Step 1 Click on file
from tab
Step 2 Than open folder
where your file
is saved.
Step 3 Now your terminal
is ready to compile.