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 compilesgo test # actually runs tests, c++ lib must be built| Name | Name | Last commit date | ||
|---|---|---|---|---|
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 compilesgo test # actually runs tests, c++ lib must be built