Open fxqy opened 4 years ago
Another new code exception
The UI dependencies are specified in the README. Also glfw was removed. Could you please update and try again.
@Serkonda The vui has never been successful in the mingw64 environment.
Dong@DESKTOP-JHQSG53 MINGW64 /c/Users/Dong/.vmodules/ui/examples
# v run users.v
==================
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccvxb0R2.o:users.tmp.c:(.rdata$.refptr.IID_ID3D11Texture2D[.refptr.IID_ID3D11Texture2D]+0x0): undefined reference to `IID_ID3D11Texture2D'
collect2.exe: error: ld returned 1 exit status
...
==================
(Use `v -cg` to print the entire error message)
builder error:
==================
C error. This should never happen.
If you were not working with C interop, please raise an issue on GitHub:
https://github.com/vlang/v/issues/new/choose
You can also use #help on Discord: https://discord.gg/vlang
Dong@GO4FP9nd5S816Mt MINGW64 ~
# v up
Updating V...
Current V version:
V 0.1.28 1086150
Dong@GO4FP9nd5S816Mt MINGW64 ~
# v install ui
Updating module "ui"...
Dong@GO4FP9nd5S816Mt MINGW64 ~
# cd /c/Users/Dong/.vmodules/ui/examples/
Dong@GO4FP9nd5S816Mt MINGW64 /c/Users/Dong/.vmodules/ui/examples
# ls
README.md counter.v logo.png resizable_window.v slider_textbox.v temperature.v
build_examples.vsh dropdown.v message.v rgb_color.v switch.v timer.v
calculator.v group.v plus.png screenshot.png switch_close.png transitions.v
change_title.v group_with_auto_incr_size.png rectangles.v slider.v switch_open.png users.v
Dong@GO4FP9nd5S816Mt MINGW64 /c/Users/Dong/.vmodules/ui/examples
# v run users.v
C:\v\vlib\clipboard\clipboard_windows.c.v:136:15: warning: pointer indexing is only allowed in `unsafe` blocks
134 | mut locked := &u16(C.GlobalLock(buf))
135 | C.MultiByteToWideChar(C.CP_UTF8, C.MB_ERR_INVALID_CHARS, text.str, text.len + 1, locked, len_required)
136 | locked[len_required - 1] = u16(0)
| ~~~~~~~~~~~~~~~~~~
137 | C.GlobalUnlock(buf)
138 | }
==================
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccVaf828.o:users.tmp.c:(.rdata$.refptr.IID_ID3D11Texture2D[.refptr.IID_ID3D11Texture2D]+0x0): undefined reference to `IID_ID3D11Texture2D'
collect2.exe: error: ld returned 1 exit status
...
==================
(Use `v -cg` to print the entire error message)
builder error:
==================
C error. This should never happen.
If you were not working with C interop, please raise an issue on GitHub:
https://github.com/vlang/v/issues/new/choose
You can also use #help on Discord: https://discord.gg/vlang
Dong@GO4FP9nd5S816Mt MINGW64 /c/Users/Dong/.vmodules/ui/examples
What does this mean and what dependent libraries need to be