Re: [go-nuts] cgo multiple definition errors

2017-10-13 Thread Ian Lance Taylor
On Fri, Oct 13, 2017 at 4:24 PM, 'Pushkar' via golang-nuts wrote: > > I was getting the multiple definition error when I put my C files in the > same directory as my go files. > Only after reading some online posts I figured I should put my code into a > separate directory. > > The introductory pa

[go-nuts] cgo multiple definition errors

2017-10-13 Thread 'Pushkar' via golang-nuts
I was getting the multiple definition error when I put my C files in the same directory as my go files. Only after reading some online posts I figured I should put my code into a separate directory. The introductory page to cgo doesn't mention this. It would save newbies some time if did: https