This is an example of Go code calling to a C++ library with a C wrapper.
make
(cd src/ && g++ -c nummer.cpp && /usr/bin/ar rcs libnummer.a nummer.o)
go build # this only ensures it compiles
go test # actually runs tests, c++ lib must be built
This is an example of Go code calling to a C++ library with a C wrapper.
make
(cd src/ && g++ -c nummer.cpp && /usr/bin/ar rcs libnummer.a nummer.o)
go build # this only ensures it compiles
go test # actually runs tests, c++ lib must be built