Re: [go-nuts] Facing linker issues while cross-compiling from Ubuntu/amd64 to darwin/amd64

2017-01-06 Thread Kedar Babar
is creating the ELF file format, which it is not able to understand. I tried different linker options also, but did not succeed. On Thursday, January 5, 2017 at 9:07:27 PM UTC+5:30, Ian Lance Taylor wrote: > > On Thu, Jan 5, 2017 at 5:42 AM, Kedar Babar > wrote: > > > &g

[go-nuts] Facing linker issues while cross-compiling from Ubuntu/amd64 to darwin/amd64

2017-01-05 Thread Kedar Babar
Hi, I had written a small go program, which refers the 'C' code, following is the snippet package main /* #include */ import "C" import "fmt" const cgoAddrInfoFlags = (C.AI_CANONNAME | C.AI_V4MAPPED | C.AI_ALL) & C.AI_MASK func main() { fmt.Println("Hello") } When i build the above