You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
Hi I'm trying to build my project as C so I can call it from Nodejs. But when I run the command "go build -buildmode=c-shared -o keyring.so ." I get a so file but no h C header.
I am running this on Mac M1. I read something about cgo being disabled by default on mac's without the c toolchain but I do have gcc installed so not sure what's up.
Ian Lance Taylor
unread,
Feb 23, 2023, 5:56:08 PM2/23/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to David Choi (jsoneaday), golang-nuts
You will only get a C header file if your code uses //export to export
some functions to be callable from C code.
If you are doing that already, show us a small self-contained example
that we can use to recreate the problem. Thanks.