diff --git a/Examples/go/index.html b/Examples/go/index.html index 4c07af3f0ab..b7d7017d3b1 100644 --- a/Examples/go/index.html +++ b/Examples/go/index.html @@ -36,20 +36,23 @@
@@ -57,10 +60,15 @@-% swig -go interface.i -% gcc -fpic -c interface_wrap.c -% gcc -shared interface_wrap.o $(OBJS) -o interfacemodule.so -% 6g interface.go -% 6c interface_gc.c -% gopack grc interface.a interface.6 interface_gc.6 -% 6l program.6 +% swig -go -cgo interface.i +% mkdir -p gopath/src/interface +% cp interface_wrap.c interface_wrap.h interface.go gopath/src/interface +% GOPATH=`pwd`/gopath +% export GOPATH +% cd gopath/src/interface +% go build +% go tool compile $(SRCDIR)/runme.go +% go tool link -o runme runme.o
Compatibility All of the examples were last tested with the following configuration -(10 May 2010): +(5 August 2015):-% swig -go interface.i -% gcc -c interface_wrap.c -% gccgo -c interface.go -% gccgo program.o interface.o interface_wrap.o +% swig -go -cgo interface.i +% mkdir -p gopath/src/interface +% cp interface_wrap.c interface_wrap.h interface.go gopath/src/interface +% GOPATH=`pwd`/gopath +% export GOPATH +% cd gopath/src/interface +% go build +% gccgo -c $(SRCDIR)/runme.go +% gccgo -o runme runme.o interface.a