Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running example have an error. #167

Closed
yanyuxuanz opened this issue Sep 12, 2018 · 8 comments
Closed

running example have an error. #167

yanyuxuanz opened this issue Sep 12, 2018 · 8 comments

Comments

@yanyuxuanz
Copy link

..\github.com\sciter-sdk\go-sciter\sciter.go:742: cannot use bs (type C.LPCSTR) as type *C.char in argument to _Cfunc_GoString
..\github.com\sciter-sdk\go-sciter\sciter.go:871: cannot use cname (type *C.char) as type *C.CHAR in argument to func literal
..\github.com\sciter-sdk\go-sciter\sciter.go:888: cannot use cname (type *C.char) as type *C.CHAR in argument to func literal
..\github.com\sciter-sdk\go-sciter\sciter.go:950: cannot use cname (type *C.char) as type *C.CHAR in argument to func literal
..\github.com\sciter-sdk\go-sciter\sciter.go:962: 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

@pravic
Copy link
Member

pravic commented Sep 12, 2018

Go and mingw versions?

@yanyuxuanz
Copy link
Author

go version is 1.9.3,and tdm64-gcc-5.1.0-2,now I cmd go get github.com/sciter-sdk/go-sciter.The same problem has arisen

@yanyuxuanz
Copy link
Author

$ go get github.com/sciter-sdk/go-sciter

github.com/sciter-sdk/go-sciter

sciter-sdk\go-sciter\sciter.go:742: cannot use bs (type C.LPCSTR) as type *C.char in argument to _Cfunc_GoString
sciter-sdk\go-sciter\sciter.go:871: cannot use cname (type *C.char) as type *C.CHAR in argument to func literal
sciter-sdk\go-sciter\sciter.go:888: cannot use cname (type *C.char) as type *C.CHAR in argument to func literal
sciter-sdk\go-sciter\sciter.go:950: cannot use cname (type *C.char) as type *C.CHAR in argument to func literal
sciter-sdk\go-sciter\sciter.go:962: cannot use cname (type *C.char) as type *C.CHAR in argument to func literal
sciter-sdk\go-sciter\types.go:596: cannot use s.name (type C.LPCSTR) as type *C.char in argument to _Cfunc_GoString
sciter-sdk\go-sciter\types.go:972: cannot use s.behaviorName (type C.LPCSTR) as type *C.char in argument to _Cfunc_GoString

@pravic
Copy link
Member

pravic commented Sep 12, 2018

Unfortunately, #136 is your case.

@pravic
Copy link
Member

pravic commented Sep 12, 2018

Closing this in favor of that issue.

@pravic pravic closed this as completed Sep 12, 2018
@yanyuxuanz
Copy link
Author

OK.all right.thanks and I didn't pay attention to that tag.you mean only the 1.9 version is ok?the latest or since 1.9 version unsupport?

@pravic
Copy link
Member

pravic commented Sep 12, 2018

I've made it more clear, I hope: https://github.com/sciter-sdk/go-sciter/releases

go-1.9 is for Go 1.9 or lower, master or any other release is for Go 1.10 or higher (we have 1.11 now).

@yanyuxuanz
Copy link
Author

I got package of that version. and running no error,thanks very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants