win11 build error
abccyz opened this issue · comments
You need to install the headers for libgc. If you are using wsl you can install the libgc-dev package. But you can also compile it without whitout garbage collector(the -gc boehm flag). That can change the memory usage.
PS D:\develop\v\ved> v setup-freetype
Setup freetype...
Thirdparty "freetype" is already installed.
PS D:\develop\v\ved> v -gc boehm -d use_freetype .
builder error: 'gc.h' not found
PS D:\develop\v\ved> v -d use_freetype .
==================
C:/Users/ADMINI~1/AppData/Local/Temp/v_0/ved.5642773299282415512.tmp.c:22625: warning: assignment discards qualifiers from pointer target type
tcc: error: library 'freetype' not found
...
==================
(Use `v -cg` to print the entire error message)
builder error:
==================
C error. This should never happen.
This is a compiler bug, please report it using `v bug file.v`.
https://github.com/vlang/v/issues/new/choose
You can also use #help on Discord: https://discord.gg/vlang