sciter-sdk / go-sciter

Golang bindings of Sciter: the Embeddable HTML/CSS/script engine for modern UI development
https://sciter.com
2.57k stars 268 forks source link

windows7 x64 go version 1.10.1 windows/amd64 gcc version 5.1.0(tdm64-1) build faild #143

Open JorJule opened 6 years ago

JorJule commented 6 years ago

github.com/sciter-sdk/go-sciter

C:\GoProject\src\github.com\sciter-sdk\go-sciter\sciter.go:464: invalid indirect of _Ctype_uint(&length) (type _Ctype_uint) C:\GoProject\src\github.com\sciter-sdk\go-sciter\sciter.go:464: cannot convert & length (type _Ctype_uint) to type _Ctype_uint C:\GoProject\src\github.com\sciter-sdk\go-sciter\sciter.go:782: invalid indirect of _Ctype_uint(&count) (type _Ctype_uint) C:\GoProject\src\github.com\sciter-sdk\go-sciter\sciter.go:782: cannot convert & count (type _Ctype_uint) to type _Ctype_uint C:\GoProject\src\github.com\sciter-sdk\go-sciter\sciter.go:2038: invalid indirec t of _Ctype_uint(&length) (type _Ctype_uint) C:\GoProject\src\github.com\sciter-sdk\go-sciter\sciter.go:2038: cannot convert &length (type *_Ctype_uint) to type _Ctype_uint

pravic commented 6 years ago

Try gcc 6 or higher.

b1gcat commented 6 years ago

$ gcc -v Using built-in specs. COLLECT_GCC=C:\msys64\mingw32\bin\gcc.exe COLLECT_LTO_WRAPPER=C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.2.0/lto-wrapper.exe Target: i686-w64-mingw32 Configured with: ../gcc-6.2.0/configure --prefix=/mingw32 --with-local-prefix=/mingw32/local --build=i686-w64-mingw32 --host=i686-w64-mingw32 --target=i686-w64-mingw32 --with-native-system-header-dir=/mingw32/i686-w64-mingw32/include --libexecdir=/mingw32/lib --enable-bootstrap --with-arch=i686 --with-tune=generic --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw32 --with-mpfr=/mingw32 --with-mpc=/mingw32 --with-isl=/mingw32 --with-pkgversion='Rev2, Built by MSYS2 project' --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld --disable-sjlj-exceptions --with-dwarf2 Thread model: posix gcc version 6.2.0 (Rev2, Built by MSYS2 project)

..\..\..\github.com\sciter-sdk\go-sciter\sciter.go:704: cannot use bs (type C.LPCSTR) as type *C.char in argument to _Cfunc_GoString
..\..\..\github.com\sciter-sdk\go-sciter\sciter.go:835: cannot use cname (type *C.char) as type *C.CHAR in argument to func literal
..\..\..\github.com\sciter-sdk\go-sciter\sciter.go:852: cannot use cname (type *C.char) as type *C.CHAR in argument to func literal
..\..\..\github.com\sciter-sdk\go-sciter\sciter.go:914: cannot use cname (type *C.char) as type *C.CHAR in argument to func literal
..\..\..\github.com\sciter-sdk\go-sciter\sciter.go:926: cannot use cname (type *C.char) as type *C.CHAR in argument to func literal
..\..\..\github.com\sciter-sdk\go-sciter\types.go:596: cannot use s.name (type C.LPCSTR) as type *C.char in argument to _Cfunc_GoString
..\..\..\github.com\sciter-sdk\go-sciter\types.go:972: cannot use s.behaviorName (type C.LPCSTR) as type *C.char in argument to _Cfunc_GoString
..\..\..\github.com\sciter-sdk\go-sciter\utils.go:73: cannot use C.INT(size) (type C.INT) as type C.int in argument to func literal
..\..\..\github.com\sciter-sdk\go-sciter\utils.go:78: cannot use C.INT(size) (type C.INT) as type C.int in argument to func literal
pravic commented 6 years ago

@zsdevX and your Go version is...?

b1gcat commented 6 years ago

go 1.8

b1gcat commented 6 years ago

oh god. i'll change to go.1.10. try it again.

b1gcat commented 6 years ago

go version go1.10.1 windows/amd64

it works fine