Re: [go-nuts] Newbie cgo question

2017-12-07 Thread Ian Lance Taylor
On Thu, Dec 7, 2017 at 4:53 AM, wrote: > > I am working on a pilot go/cgo project for a database driver. For one of my > C functions called by go, I chose a generic, unfortunate name connect(). My > program kept dumping core on Linux. I did some tracing and found out that > my function connec

[go-nuts] Newbie cgo question

2017-12-07 Thread asaaveri
All: I am working on a pilot go/cgo project for a database driver. For one of my C functions called by go, I chose a generic, unfortunate name connect(). My program kept dumping core on Linux. I did some tracing and found out that my function connect() was being called twice even though I