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

debug example/version #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

debug example/version #54

wants to merge 1 commit into from

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
2 participants