Skip to content

respondchat/c-go-interop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ GO interop

POC repo for examining calling go code from c++

Resources

Running the example

Manually

  1. Build the go library via:
$ go build -buildmode=c-archive -o lib.a lib.go
  1. Build and run the c++ entrypoint with
$ g++ -Wall main.cpp lib.a -o main && ./main

Via make

make example