All Questions
Tagged with vscode-tasks c
16 questions
0
votes
0
answers
48
views
vscode debugger wont stop on breakpoints
I'm trying to use the debugger to analyze a C program, but isn't working
this is launch
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing ...
-1
votes
1
answer
50
views
Why does my VSCode produce garbled executable file names when compiling C source code with Chinese characters as filenames using Mingw64?
Why is it that when I compile C language source code with Chinese characters as filenames in my VSCode, the resulting executable file name turns out to be garbled, but there's no issue when using ...
0
votes
0
answers
268
views
Vscode run build task not working... it begins but never ends
i have a problem with build function in vscode (language C) because when i click on "run build task", "debug C/C++ file" or "Run C/C++ file" vscode starts building my ...
0
votes
1
answer
122
views
Unable to link .lib to VSCode-Undefined reference to `DAQmxCreateTask'
Building a C Code using Visual code studio having a third-party Library file from National Instruments. I have already included header file "NIDAQmx.h" to the code. The library file is still ...
0
votes
1
answer
340
views
When compiling C in VScode, launch: program '' does not exist
I am a beginner in C.
When I pressed F5(which execute (Windows) Launch) to run the code, I have got this error.
Here are what my explorer looks like and my launch.json and tasks.json.
├─.vscode
│ ├─...
0
votes
1
answer
54
views
configurations about C Programs on VS Code
I use the plugin Code Runner to develop C programs.
And the file tasks.json as follows:
{
"version": "2.0.0",
"tasks": [
{
"type": &...
1
vote
0
answers
91
views
Cmd. exe error occurred when compiling C file with VSCode + Clang in win environment
I write a new .c file named helloengine_win.c and use shortcuts shift + ctrl + b to complier it.
The tasks.json is :
{
"version": "2.0.0",
"tasks": [
{
"...
0
votes
1
answer
1k
views
Setting up the `regex.h` library on Windows with VS Code
I've been trying to get the regex.h library to work all day, but it's not working. (Here are my VS Code workspace configurations: https://github.com/EnderCommunity/Murmur/tree/main/.vscode - all the ...
0
votes
2
answers
2k
views
Elegant solution to VS code C/C++ include path for both intelliSense and building project
How to create task.json and launch.json for building and debugging a C/C++ project, that parameters can be loaded automatically from c_cpp_configuration.json?
(parameters such as include path, ...
1
vote
1
answer
926
views
gcc does not compile any other libraries in Visual Studio Code
I am on windows 10 and I use Visual Studio Code as IDE and code editor to code some C. I installed Microsoft's C/C++ extension as well as Jun Han's Code Runner.
I installed msys2 and then mingw64 in ...
4
votes
1
answer
1k
views
Is it possible to build task based on the specific file extension?
Specifically, I'd like one keyboard shortcut to build an executable file with the correct compilation command and flags, whether the source file is a .c or a .cpp.
For example, my current tasks file, ...
12
votes
1
answer
7k
views
[Visual Studio Code]: Run task on save
I want do develop C programs with vscode.
My tasks.json, which describes the build stage if I understood that correctly, looks like this:
{
"version": "2.0.0",
"tasks&...
10
votes
2
answers
10k
views
How do I specify the include path when I build a program in VSCode?
Let's say this is my project.
file structure:
project_root
|-- inc
| |-- header.h
|-- src
| |-- helpers.c
| |-- main.c
header.h
#ifndef HEADER_H
# define HEADER_H
void func(void);
#...
6
votes
2
answers
21k
views
Setting up VS Code for C using Cygwin64 Compiler and Debugger on Windows
Would like to set up VS Code to work with Cygwin/Cygwin64.
Already have these set up:
Installed Cygwin64 on windows
Installed gcc (Compiler) and gdb (Debugger) packages from Cygwin installer
GCC and ...
1
vote
1
answer
6k
views
Where to add -g flag in vs code for debugging
I have two questions. I have just installed VS code and managed to make it compile C codes and show outputs. But I am not able to debug. When I add a breakpoint and Debug, Red circle greys out.
I ...
5
votes
1
answer
9k
views
How to define the task.json to compile C/C++ code in vscode by using the cl.exe on windows?
I have installed the Microsoft Visual C++ Build Tools 2015 on my 64bit win10 , and can use the cl.exe to compile and link the C/C++ program in a plain Command Prompt window by the following steps (...