From 683dafb6d3e0f04a6f51480ab00202c6f38d11c9 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 16 Jun 2010 15:47:15 +0000 Subject: [PATCH] Update the instructions to say that you also need to compile the code itself. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12133 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/go/simple/index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Examples/go/simple/index.html b/Examples/go/simple/index.html index 82372ef37..21dfc239e 100644 --- a/Examples/go/simple/index.html +++ b/Examples/go/simple/index.html @@ -74,8 +74,10 @@ rather than gccgo.
  • Compile the example_wrap.c file using your standard C compiler with the -fpic option; e.g., gcc -c -O -fpic example_wrap.c. -
  • Put the gcc compiled object file into a shared library; - e.g., gcc -shared -o example.so example_wrap.o. +
  • Also compile the actual code, not generated by SWIG; e.g., gcc + -c -O -fpic example.c. +
  • Put the gcc compiled object files into a shared library; + e.g., gcc -shared -o example.so example_wrap.o example.o.
  • Compile the program which demonstrates how to use the library; e.g., 6g runme.go.
  • Link the program; e.g., 6l -o runme runme.6.