Linker error when compiling with -cc clang
on Windows
#20724
Labels
Bug
This tag is applied to issues which reports bugs.
OS: Windows
Bugs/feature requests, that are specific to Windows OS.
Describe the bug
V doesn't link with user32 on Windows, so the MessageBoxA call in gcboehm is an unresolved symbol.
Reproduction Steps
Compile this with
v -cc clang .
on Windows:Expected Behavior
No linker errors
Current Behavior
Possible Solution
Insert a
#flag -luser32
when compiling on Windows invlib/builtin/builtin_d_gcboehm.c.v
.Additional Information/Context
Works with
v -cflags "-luser32" -cc clang .
V version
V 0.4.4 abd2b64
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: