visualfc / go-ui

golang ui
BSD 2-Clause "Simplified" License
296 stars 105 forks source link

build qtdrv on windows7 x64 failed #16

Closed vanloswang closed 8 years ago

vanloswang commented 9 years ago

when execute the follow cmd, it failed to build go-ui on Windows 7 64 bit system. $ cd go-ui/ui $ go install The error message is as below: In file included from $WORK\github.com\vanloswang\go-ui\ui_obj_cgo_export.c:2: 0: .\cdrv.go:64:14: error: conflicting types for 'drv_result' Data uintptr ^ .\cdrv.go:25:13: note: previous declaration of 'drv_result' was here extern int drv_result(void*,int); ^ .\cdrv.go:68:14: error: conflicting types for 'drv_callback'

          ^

.\cdrv.go:13:13: note: previous declaration of 'drv_callback' was here extern int drvcallback(void,void,void,void_,void*); ^

F:\GoLang\GoDev\src\github.com\vanloswang\go-ui\ui>go install

github.com/vanloswang/go-ui/ui

In file included from $WORK\github.com\vanloswang\go-ui\ui_obj_cgo_export.c:2: 0: .\cdrv.go:64:14: error: conflicting types for 'drv_result' Data uintptr ^ .\cdrv.go:25:13: note: previous declaration of 'drv_result' was here extern int drv_result(void*,int); ^ .\cdrv.go:68:14: error: conflicting types for 'drv_callback'

          ^

.\cdrv.go:13:13: note: previous declaration of 'drv_callback' was here extern int drvcallback(void,void,void,void_,void*); ^ anyone have some suggestions?

vanloswang commented 8 years ago

fixed

syzer commented 8 years ago

great work 👍