You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a very simple C c LRESULT.docx
ode which i am trying to compile/debug. At this point it is just a 'Hello World!' program because I am new to Visual Studio Code and am just trying to get the compiler to work. In hopes of it helping, here is my code:
#include <stdio.h>
int main() {
// printf() displays the string inside quotation
int a = 666;
I should be able to compile and debug this without any Problem. I've done Research on how to set up a project. When I attempt to compile/debug, i get the attached error message. I have my MinGW-64 installed directly on my C:/ drive. I have the C/C++ Extension downloaded and installed. I've tried other configurations with different .json files but none worked. It's worth mentioning that I am at a Business with restrictions as to what i can and cannot do with my administrative rights. example, when downloading MinGW-64 via Internet, I received an error from the install file stating it could not download the "repository.exe" file - which cancelled the installation. I later received MinGW via Company Network - and it installed fine. Now there are other issues. Are they company restriction - based? Is it my fault?
Ive attached the two error windows that Pop up as well as the terminal (there is no information in Output)
Please help me.
The text was updated successfully, but these errors were encountered:
This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines.
I have a very simple C c
LRESULT.docx
ode which i am trying to compile/debug. At this point it is just a 'Hello World!' program because I am new to Visual Studio Code and am just trying to get the compiler to work. In hopes of it helping, here is my code:
#include <stdio.h>
int main() {
// printf() displays the string inside quotation
int a = 666;
printf("Hello, World!");
return 0;
}
I also have a launch.json as follows:
}
and a Tasks.json:
{
"tasks": [
{
"type": "shell",
"label": "gcc.exe build active file",
"command": "C:\MinGW-64\bin\gcc.exe",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "C:\MinGW-64\bin"
},
"group": {
"kind": "build",
"isDefault": true
}
}
],
"version": "2.0.0"
}
I should be able to compile and debug this without any Problem. I've done Research on how to set up a project. When I attempt to compile/debug, i get the attached error message. I have my MinGW-64 installed directly on my C:/ drive. I have the C/C++ Extension downloaded and installed. I've tried other configurations with different .json files but none worked. It's worth mentioning that I am at a Business with restrictions as to what i can and cannot do with my administrative rights. example, when downloading MinGW-64 via Internet, I received an error from the install file stating it could not download the "repository.exe" file - which cancelled the installation. I later received MinGW via Company Network - and it installed fine. Now there are other issues. Are they company restriction - based? Is it my fault?
Ive attached the two error windows that Pop up as well as the terminal (there is no information in Output)
Please help me.
The text was updated successfully, but these errors were encountered: