Skip to main content

All Questions

Tagged with
3 votes
1 answer
166 views

$gcc problemMatcher doesn't show all errors or warnings

I have a Visual Studio Code C project based on CMake, compiled using gcc. I've created a custom task for building the project, and have specified $gcc for its problemMatcher property. However, when I ...
Bri Bri's user avatar
  • 2,191
0 votes
2 answers
361 views

Language C: ( fatal error No such file or directory) in the vscode terminal on laptop windows 11

First test In folder Source file main.c In folder Source file controller.c In folder Headers file controler.h In folder .vscode file c_cpp_properties.json In folder .vscode file launch.json #include &...
I-Smart MonBusiness's user avatar
0 votes
0 answers
59 views

I have an error which suggests that I must update includePath otherwise the error is File.h: No such file or directory gcc

SCREENSHOT PICTURE In folder source The prototype in the file control.h: #include <stdio.h> #include <stdbool.h> double rectangularArea (double width, double height); The file main.c: ...
I-Smart MonBusiness's user avatar
1 vote
0 answers
165 views

ESP-IDF VSCode CMake and other adventures

Im trying to set up ESP-IDF on my computer, and run VSCode to compile my code that 100% compiled on other machine. But when i run VSCode, it's shows PROBLEMS (1) [{ "resource": "/E:/...
Дмитрий Петров's user avatar
1 vote
2 answers
552 views

VS Code C/C++ extension intellisense can't detect environment specific functions

When I'm writing C codes on VS Code, IntelliSense can't detect functions declared in standard libraries, while the project compile properly. Details: The flockfile function is declared as void ...
Dumble009's user avatar
0 votes
0 answers
44 views

Why doesn't my output work and keeps running when executing code? [duplicate]

My output isn't working since I tried (and failed) to use mysql with c on vs code(W11). More precisely the program can get executed in the terminal, and only works in the output when I haven't put a ...
user23662717's user avatar
1 vote
0 answers
58 views

Constant gcc.exe: error: mario.c: No such file or directory error on vscode when trying to run C file

I've been looking for an answer for around 2 hours now and can'tfind anything that works. My code is a very simple Hello World code. The complete error is: PS C:\Windows\System32\C_Projects\mario> ...
Boriscodes's user avatar
-1 votes
1 answer
149 views

Have two C compilers

I wanted to set up C language on VSCode, and ended up with 2 compilers (clang and gcc) how can I delete one of them ? P.S: I'm using M2 Mac, had to notice that I want a solution to my problem, maybe ...
Aboud Fialah's user avatar
1 vote
2 answers
122 views

When I run/debug C program, malloc() seems to be assigning "r\r\r\r\r\r..." to a pointer and I am not sure why?

I am working through the Harvard cs50x courses and I have purposefully been avoiding using their cs50.h library so that I don't have another hoop to jump through re-learning how to code certain things ...
DarkwaterVale's user avatar
0 votes
1 answer
132 views

<math.h> math module is not working for me in C, i am using VSCodium in linux

so my code ran smoothly in codium with the extensions when i was only working with stdio.h, but when i tried to use math.h module in my program i am unable to run it, this is what i get as error: ...
Suvansh Rao's user avatar
0 votes
0 answers
221 views

How to compile C code using sqlite3 library in vscode?

So, this is the structure of my project: C:. │ main.c │ ├───.dist ├───.vscode │ c_cpp_properties.json │ tasks.json │ └───sqlite shell.c sqlite3.c sqlite3.def ...
Shedar's user avatar
  • 1
1 vote
0 answers
495 views

Error Message: error: unknown type name ‘int8_t’

Environment: 64-bit Ubuntu 22.04.3 LTS My code: #include <stdio.h> int main(void){ printf("hello world"); } Terminal output: Localhost_8080 says: make hello cc hello.c -o ...
Birdy's user avatar
  • 19
0 votes
1 answer
305 views

VS code is showing file directory error even after many changes

I use vs code in for my college and make multiple source files which I save in a folder on my desktop and VS code and mingw is installed in c folder so every time I try to run my code it gives out ...
Sarvagnya Kunal's user avatar
2 votes
1 answer
114 views

C compiling and running

I'm new in C and I'm trying to run a simple helloworld, but the terminal is not displaying the output. Here is the code: int main(int argc, char *argv[]) { printf("Hello"); return 0; ...
Leo_Miche's user avatar
0 votes
1 answer
878 views

gcc / g++ command does nothing and exits with code 1

gcc / g++ throws exit code 1 and does nothing I tried to compile my c++ / c files using gcc / g++ ! It did nothing the command neither produced a.exe file it didn't throw any error ,(print anything ...
infinull's user avatar

15 30 50 per page
1
2 3 4 5
8