lxn / win

A Windows API wrapper package for the Go Programming Language
Other
1.21k stars 315 forks source link

Question: Compile issues #41

Closed cyclamenkde closed 6 years ago

cyclamenkde commented 6 years ago

compile under Windows: error

D:\SourceCode\GoProj\src\goWin>go build -ldflags="-H windowsgui" # github.com/lxn/walk ..\github.com\lxn\walk\bitmap.go:58: undefined: win.GdiFlush ..\github.com\lxn\walk\bitmap.go:194: undefined: win.GdiFlush ..\github.com\lxn\walk\bitmap.go:208: undefined: win.SetDIBits ..\github.com\lxn\walk\bitmap.go:247: undefined: win.AlphaBlend ..\github.com\lxn\walk\bitmap.go:258: undefined: win.BLENDFUNCTION ..\github.com\lxn\walk\brush.go:252: undefined: win.CreatePatternBrush ..\github.com\lxn\walk\brush.go:349: undefined: win.TRIVERTEX ..\github.com\lxn\walk\brush.go:360: undefined: win.GRADIENT_TRIANGLE ..\github.com\lxn\walk\brush.go:369: undefined: win.GradientFill ..\github.com\lxn\walk\brush.go:369: undefined: win.GRADIENT_FILL_TRIANGLE ..\github.com\lxn\walk\brush.go:369: too many errors

Cross-compile under Ubuntu: Success

jun@jun-IdeaCentre-B545:\~/codes/golang/src/goWin$ export GOOS="windows" jun@jun-IdeaCentre-B545:\~/codes/golang/src/goWin$ go build

cyclamenkde commented 6 years ago

need to go get -u github.com/lxn/win as well.