All Questions
Tagged with visual-studio-code c
1,195
questions
0
votes
0
answers
18
views
VS Code ignoring target specific include path order from CMake targets
I am developing on a cross-compiling SW project with a structure looking roughly like below. Using Visual Studio Code with CMake and "CMake Tools" extensions. In this scenario, two ...
1
vote
0
answers
46
views
C debugger Not able to Print or take Input when in debugger mode is On
in .vscode Folder :
My lanch.json:
{
"configurations": [
{
"name": "C/C++: gcc.exe build and debug active file",
"type": &...
2
votes
0
answers
72
views
C header files show "red error line" in VS Code
It compiles correctly with gcc command line, but .h files show these red error lines.
The files (.c and .h) are in the same folder.
What am I doing wrong?
I'm using Windows 11.
#ifndef PONTO_H
#define ...
1
vote
1
answer
54
views
How do I get the "make" command to work on the terminal of VScode? [closed]
Whenever I type "make" then the name of the program I get a message saying make isn't recognized as a cmdlet or function and that I should check if my path is correct
I've tried including ...
-1
votes
0
answers
101
views
I can compile this C program on online compiler but when i run on vscode it doesnt return any value and doesnt show error
This program could be compiled on online gdb but when it's on vscode it doesn't. It doesn't return any result and does not show any error.
I've installed mingw gcc, Code Runner and enable this option ...
1
vote
1
answer
80
views
when running 'make' it tells me I dont have python installed? [closed]
I am running a sample program given to me through GitHub for the max780000fthr. I know that it works as my teammate was able to compile it - though it won't successfully work when flashed onto the ...
0
votes
1
answer
50
views
C code reading only part of a matrix correctly [closed]
While trying to read the following matrix from a .dad file
1 3 −3 1
−1 3 2 0
2 4 0 7
the program bizarrely only reads the first two values:
PS C:\Users\...\P1> gcc -o main_gauss ...
1
vote
1
answer
61
views
VSCode can't recognise includes
I'm using a Ubuntu machine for a couple years now, and everything worked. For the past few months however, VSCode started acting up, refusing to recognize includes, Not only do the non-native includes ...
-1
votes
0
answers
41
views
have i correctly install c in my vs code? [duplicate]
Some key points:
I have installed the Microsoft C pack, its extension, and the code runner,
I have also installed Mingw compiler.
my code works fine when made to run under the "RUN CODE" ...
2
votes
0
answers
43
views
why does my VSCode exit with code 127 when trying to compile a C file using gcc?
I'm trying to compile a C file using gcc. I'm in the right directory and all the files included in the C file i'm trying to compile is in the same directory. I can compile other files but I can't ...
0
votes
0
answers
74
views
Why is my computer omitting a result which online compilers aren't? Also, it is taking 35 seconds to run [duplicate]
In terminal -
PS C:\Users\Paradox\Documents\Prog\C> cd "c:\Users\Paradox\Documents\Prog\C\" ; if ($?) { gcc armstrong.c -o armstrong } ; if ($?) { .\armstrong }
Enter the upper limit for ...
1
vote
0
answers
59
views
How to set launch target in VSCode with a makefile?
I'm new to makefiles and was trying to get it working with vscode but I'm not sure how to set the launch target?
From what I understand when I press F5 vscode will start at the "all" rule ...
3
votes
0
answers
87
views
Is there any way I jump the code to the same word
I'm looking for extension or way to jumping to the same word in my code.
For Example: File A and B place the same folder
File A: #define ABC = 20
File B: MyAge = ABC;
I would like to "Ctrl+left ...
0
votes
0
answers
53
views
my ubuntu wine cannot run properly my code [duplicate]
I have wine-9.19 (staging) and I have a code with 2 files .C and a file .h
in this code I need to scan 10 numbers and print theses numbers, but when I compile with my terminal using wine I put "1&...
-2
votes
1
answer
88
views
How to Run C in VS Code
Error I Get
Whenever I try to run any C/C++ code in VS Code, I get this error pop up, and idk what to do. I tried uninstalling and reinstalling VS Code C/C++ extension, but I get the same thing
I ...