Debugging V on VSCode: VERROR_MESSAGE Header file <gc.h>, needed for module builtin
was not found. Please install the corresponding development headers.
#20226
Unanswered
bru65pag
asked this question in
Questions and Answers
Replies: 1 comment 2 replies
-
You have a mix of things that don't usually work together. Running something in WSL with Ubuntu will not pay any attention to the Windows compiler. You'll need to install a Linux compiler in WSL. You can follow these instructions to get the Linux compiler: https://github.com/vlang/v/wiki/Installing-a-C-compiler-on-Linux-and-macOS Once you have that installed, try vscode again, and see if the problem is fixed. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running VSCode on Ubuntu with WSL on Windows 10. I have installed the V language support on VSCode. I also installed C/C++from microsoft. I have created a json.launch file, indicating the path to gdb:
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/a",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
}
]
When I start a debugging session, I have the following error message:
VERROR_MESSAGE Header file <gc.h>, needed for module
builtin
was not found. Please install the corresponding development headers.Corresponding to the following lines in a c file displayed on screen (I guess it is the c generated by the compiler):
#if __has_include(<gc.h>)
#include <gc.h>
#else
#error VERROR_MESSAGE Header file <gc.h>, needed for module
builtin
was not found. Please install the corresponding development headers.#endif
I searched internet, cannot find which development headers need to be installed. Can you help? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions