On Thu, Jan 21, 2021 at 10:21 PM Nicholas Yue <yue.nicho...@gmail.com> wrote:
>
> /*
> #include "hello.c"
> */
> import "C"

Doing a #include of "hello.c" is unusual.  That is most likely your
problem.  The comment before the import "C" is handled as C code.  C
code rarely does a #include of a .c file.  Normally one does a
#include of a .h file.

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVo-_HepbiOYhtfRMYcSrbZeNAoYitgeJayS15nCRL2LQ%40mail.gmail.com.

Reply via email to