Re: [go-nuts] cgo:build trouble

2019-03-18 Thread Ian Lance Taylor
On Sun, Mar 17, 2019 at 9:37 PM wrote: > > package main > > import( > ) > > /* > #include > */ > import "C" > > func main() { > C.printf(C.CString("hello")) > } > > //>build this file with go build, i got > //./testems.go:12:2: unexpected type: ... > > could someone help me with this

[go-nuts] cgo:build trouble

2019-03-17 Thread liaoyue2019
package main import( ) /* #include */ import "C" func main() { C.printf(C.CString("hello")) } //>build this file with go build, i got //./testems.go:12:2: unexpected type: ... could someone help me with this trouble? thanks! -- You received this message because you are subscribed to