Skip to content

cant debug Vlang code #17903

Closed Answered by i582
lucas8338 asked this question in Questions and Answers
Apr 7, 2023 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Hi, try without the -c flag and use GCC to be sure:

v -cc gcc -keepc -g main.v

-c tells V not to create special #line directives in C code, and that's the problem.

See https://github.com/vlang/v/blob/master/doc/docs.md#c-backend-binaries-default

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lucas8338
Comment options

You must be logged in to vote
1 reply
@JalonSolov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants