On Fri, Oct 13, 2017 at 4:24 PM, 'Pushkar' via golang-nuts
<golang-nuts@googlegroups.com> 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 page to cgo doesn't mention this. It would save newbies
> some time if did:
> https://blog.golang.org/c-go-cgo
>
> Using go1.8.3 on Linux.

It usually works fine to put your C files in the same directory as
your Go files.  For example, that's how misc/cgo/test works.  I don't
know what happened that caused you to put your code in a separate
directory, so I don't know what to fix in the docs.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to