On Wed, Apr 24, 2019 at 4:16 PM Nitish Saboo <nitish.sabo...@gmail.com> wrote:

> >>Why size_t, char is going to be undefined here ? I followed the exact steps 
> >>mentioned in 'https://github.com/golang/go/wiki/cgo#function-variables'  
> >>under the topic 'Function pointer callback'.
> I have to pass the callback function to the C code.

size_t is going to be undefined because you're not including the
header that defines it before using the type. Or you may just get
lucky, as the compiler may include the right header in the translation
unit for you anyway, because CGO needs that type as well. In that
case, your code may break anytime in the future.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to