Re: [go-nuts] cgo: undefined reference to `stdout'

2016-07-31 Thread andrey mirtchovski
this is bug 10715: https://github.com/golang/go/issues/10715 a more idiomatic solution is available here: https://github.com/golang/go/blob/master/misc/cgo/stdio/stdio.go On Sun, Jul 31, 2016 at 1:22 AM, P Q wrote: > https://play.golang.org/p/4XZSmyRkZa > > I've got

[go-nuts] cgo: undefined reference to `stdout'

2016-07-31 Thread P Q
https://play.golang.org/p/4XZSmyRkZa I've got error message when building the code as follows: C:\Users\Home\AppData\Local\Temp\go-build437760086\command-line-arguments\_obj\_cgo_main.o:_cgo_main.c:(.data+0x0): undefined reference to `stdout' collect2.exe: error: ld returned 1 exit status I