Skip to content

Conversation

@lluck42
Copy link

@lluck42 lluck42 commented May 24, 2019

close #52

@63isOK
Copy link

63isOK commented Sep 9, 2020

hello, @lluck42

i test your pr in win7 x86 v0.1.0, change "ulong" to "ulonglong" will cause anohter error msg:

old error msg:

new error msg:

\avformat\avformat.go:270:45: cannot use _Ciconst_sizeof_char * _Ctype_ulonglong(proto_size) (type _Ctype_ulonglong) as type _Ctype_uint in argument to _Cfunc__CMalloc
\avformat\avformat.go:273:53: cannot use _Ciconst_sizeof_char * _Ctype_ulonglong(authorization_size) (type _Ctype_ulonglong) as type _Ctype_uint in argument to _Cfunc__CMalloc
\avformat\avformat.go:276:48: cannot use _Ciconst_sizeof_char * _Ctype_ulonglong(hostname_size) (type _Ctype_ulonglong) as type _Ctype_uint in argument to _Cfunc__CMalloc
\avformat\avformat.go:279:44: cannot use _Ciconst_sizeof_char * _Ctype_ulonglong(path_size) (type _Ctype_ulonglong) as type _Ctype_uint in argument to _Cfunc__CMalloc
\avformat\avformat.go:300:43: cannot use _Ciconst_sizeof_char * _Ctype_ulonglong(buf_size) (type _Ctype_ulonglong) as type _Ctype_uint in argument to _Cfunc__CMalloc
\avformat\avformat.go:321:43: cannot use _Ciconst_sizeof_char * _Ctype_ulonglong(buf_size) (type _Ctype_ulonglong) as type _Ctype_uint in argument to _Cfunc__CMalloc

old error msg:

\avformat\avformat.go:270:45: cannot use _Ciconst_sizeof_char * _Ctype_ulong(proto_size) (type _Ctype_ulong) as type _Ctype_uint in argument to _Cfunc__CMalloc
\avformat\avformat.go:273:53: cannot use _Ciconst_sizeof_char * _Ctype_ulong(authorization_size) (type _Ctype_ulong) as type _Ctype_uint in argument to _Cfunc__CMalloc
\avformat\avformat.go:276:48: cannot use _Ciconst_sizeof_char * _Ctype_ulong(hostname_size) (type _Ctype_ulong) as type _Ctype_uint in argument to _Cfunc__CMalloc
\avformat\avformat.go:279:44: cannot use _Ciconst_sizeof_char * _Ctype_ulong(path_size)(type _Ctype_ulong) as type _Ctype_uint in argument to _Cfunc__CMalloc
\avformat\avformat.go:300:43: cannot use _Ciconst_sizeof_char * _Ctype_ulong(buf_size) (type _Ctype_ulong) as type _Ctype_uint in argument to _Cfunc__CMalloc
\avformat\avformat.go:321:43: cannot use _Ciconst_sizeof_char * _Ctype_ulong(buf_size) (type _Ctype_ulong) as type _Ctype_uint in argument to _Cfunc__CMalloc

i try this way, it works.

Cbuf := (*C.char)(C.malloc(C.uint(C.sizeof_char * C.ulong(buf_size))))

hope to give you some new message.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

can't run example/version.go on Window 10

2 participants