go-ui icon indicating copy to clipboard operation
go-ui copied to clipboard

Compilation issue with ui/cdrv.go

Open jbuchbinder opened this issue 12 years ago • 3 comments

Compiling with "tip" golang ( go version devel +fc8137c00f9c Sat Oct 13 19:05:22 2012 +0800 ), this comes up:

$ go build
# _/code/go/go-ui/ui
In file included from $WORK/_/code/go/go-ui/ui/_obj/_cgo_export.c:2:0:
cdrv.go:62:14: error: conflicting types for ‘drv_result’
cdrv.go:24:13: note: previous declaration of ‘drv_result’ was here
cdrv.go:66:14: error: conflicting types for ‘drv_callback’
cdrv.go:12:13: note: previous declaration of ‘drv_callback’ was here

Running Ubuntu 12.04, with qt package version4:4.8.1-0ubuntu4.2 installed.

jbuchbinder avatar Oct 19 '12 17:10 jbuchbinder

I have two machines here which are both powered by current Debian Wheezy and are using the identical configuration/installed software (if it makes sense here), the only difference is architecture (i686 and amd64). The described above behaviour could be reproduced only with "tip" golang under amd64 system. It could not be reproduced when using "tip" golang under i686 and also when using golang v1.0.3 under amd64.

ghost avatar Dec 30 '12 16:12 ghost

This issue still exists with go1.2.1. Which go version did was used during go-ui's development?

[splitlocked@Portarch ui]$ uname -a
Linux Portarch 3.13.6-1-ARCH #1 SMP PREEMPT Fri Mar 7 22:47:48 CET 2014 x86_64 GNU/Linux
[splitlocked@Portarch ui]$ go version
go version go1.2.1 linux/amd64
[splitlocked@Portarch ui]$ go install
# github.com/visualfc/go-ui/ui
In file included from $WORK/github.com/visualfc/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 drv_callback(void*,void*,void*,void*,void*);
             ^

asmundstavdahl avatar Mar 12 '14 11:03 asmundstavdahl

I meet this issue when use go-1.4.1 on Windows 7 64 bit system.

vanloswang avatar Mar 12 '15 15:03 vanloswang