Re: [go-nuts] CGO export function parameter types in packages

2016-08-02 Thread Ian Lance Taylor
On Tue, Aug 2, 2016 at 8:05 AM, Vladimír Magyar wrote: > > why is that? the MyInt type is just an alias of C.int. or? I didn't look too closely, but I think this is https://golang.org/issue/13467 . Ian -- You received this message because you are subscribed to the

[go-nuts] CGO export function parameter types in packages

2016-08-02 Thread Vladimír Magyar
when I create an new type from C type and then use it as a function parameter type, in function that I want to be exported then everything is OK main.go: package main import "C" type MyInt C.int //export f func f(x tests.MyInt) { } and then $ go build -v -buildmode=c-shared -o main.so