Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Build the go package into a c archive
- ```
- # go build -buildmode=c-archive shared.go
- ```
- Compiling in C.
- ```
- # gcc -lpthread main.c shared.a
- ```
- Used to remove generated files:
- ```
- # rm -rf shared.a shared.h a.out
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement