Created
October 12, 2016 12:57
-
-
Save ik5/8f0d282c16cc46bd468b4280fb94242c to your computer and use it in GitHub Desktop.
loading external shared library made by go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// #cgo LDFLAGS: -L /path/to/lib/ -lgolibrary | |
// | |
// #include <golibrary_header.h> | |
// | |
import "C" | |
func main() { | |
C.func2() | |
C.func3() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment