Closed farmer-simon closed 6 days ago
C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\texture.go:15:9: undefined: TextureID C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:8:9: undefined: Vec2 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:16:9: undefined: Vec2 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:24:9: undefined: Vec2 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:32:9: undefined: Vec2 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:42:9: undefined: Vec4 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:42:21: undefined: Vec2 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:42:27: undefined: Vec4 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:52:9: undefined: Vec4 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:52:21: undefined: Vec2 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:52:21: too many errors
package main
import ( "fmt"
g "github.com/AllenDang/giu"
)
func onClickMe() { fmt.Println("Hello world!") }
func onImSoCute() { fmt.Println("Im sooooooo cute!!") }
func loop() { g.SingleWindow().Layout( g.Label("Hello world from giu"), g.Row( g.Button("Click Me").OnClick(onClickMe), g.Button("I'm so cute").OnClick(onImSoCute), ), ) }
func main() { wnd := g.NewMasterWindow("Hello world", 400, 200, g.MasterWindowFlagsNotResizable) wnd.Run(loop) }
(latest)
Windows 10
resolved
What happend?
github.com/AllenDang/cimgui-go
C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\texture.go:15:9: undefined: TextureID C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:8:9: undefined: Vec2 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:16:9: undefined: Vec2 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:24:9: undefined: Vec2 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:32:9: undefined: Vec2 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:42:9: undefined: Vec4 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:42:21: undefined: Vec2 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:42:27: undefined: Vec4 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:52:9: undefined: Vec4 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:52:21: undefined: Vec2 C:\Users\Administrator\go\pkg\mod\github.com!allen!dang\cimgui-go@v0.0.0-20240611070805-39b5aa2438db\vector_helpers.go:52:21: too many errors
Code example
package main
import ( "fmt"
)
func onClickMe() { fmt.Println("Hello world!") }
func onImSoCute() { fmt.Println("Im sooooooo cute!!") }
func loop() { g.SingleWindow().Layout( g.Label("Hello world from giu"), g.Row( g.Button("Click Me").OnClick(onClickMe), g.Button("I'm so cute").OnClick(onImSoCute), ), ) }
func main() { wnd := g.NewMasterWindow("Hello world", 400, 200, g.MasterWindowFlagsNotResizable) wnd.Run(loop) }
To Reproduce
Version
(latest)
OS
Windows 10