Skip to content

proteneer/swig_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a working derivation from the swig examples folder. BSD License.

Library Installation

go get github.com/proteneer/swig_example

Use SWIG to generate the swig_example.go and swig_example_wrap.cxx

  • cd $GOPATH/src/github.com/proteneer/swig_example

  • swig -go -c++ -cgo -intgosize 64 swig_example.i

    • -go tells swig to generate go bindings
    • -c++ instructs it to use c++
    • -cgo will be required for go 1.5 anyways
    • -intgosize specifies the int size from go->c, currently required
  • go install

Library Usage

Get the code for the calling binary:

go get github.com/proteneer/swig_runme

Install it:

go install github.com/proteneer/swig_runme

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published