Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. Build the go package into a c archive
  2. ```
  3. # go build -buildmode=c-archive shared.go
  4. ```
  5.  
  6. Compiling in C.
  7. ```
  8. # gcc -lpthread main.c shared.a
  9. ```
  10.  
  11. Used to remove generated files:
  12. ```
  13. # rm -rf shared.a shared.h a.out
  14. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement