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.