POC repo for examining calling go code from c++
- Build the go library via:
$ go build -buildmode=c-archive -o lib.a lib.go
- Build and run the c++ entrypoint with
$ g++ -Wall main.cpp lib.a -o main && ./main
make example
POC repo for examining calling go code from c++
$ go build -buildmode=c-archive -o lib.a lib.go
$ g++ -Wall main.cpp lib.a -o main && ./main
make example