/go-cpp-bindings-example

Go / C++ bindings example

Primary LanguageGo

Go / C++ bindings example

This is an example of Go code calling to a C++ library with a C wrapper.

Makefile build + run

make

Build manually

(cd src/ && g++ -c nummer.cpp && /usr/bin/ar rcs libnummer.a nummer.o)
go build  # this only ensures it compiles

Test manually

go test  # actually runs tests, c++ lib must be built