Skip to content

Go 1.6 cgo new pointer rules #18

@fabiofalci

Description

@fabiofalci

Go 1.6 cgo has new rules about passing pointers.
https://github.com/golang/proposal/blob/master/design/12416-cgo-pointers.md

When compiling go-libspotify with 1.6 I'm getting this error:

panic: runtime error: cgo argument has Go pointer to Go pointer

Triggered by this line https://github.com/op/go-libspotify/blob/master/spotify/libspotify.go#L238

err := spError(C.sp_session_create(&session.config, &session.sp_session))

Just to register as I didn't have too much time to looking into this yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions