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
This commit is contained in:
parent
e7fde8c432
commit
683dafb6d3
1 changed files with 4 additions and 2 deletions
|
|
@ -74,8 +74,10 @@ rather than <tt>gccgo</tt>.
|
|||
<li>Compile the <tt><a href="example_wrap.c">example_wrap.c</a></tt>
|
||||
file using your standard C compiler with the <tt>-fpic</tt> option;
|
||||
e.g., <tt>gcc -c -O -fpic example_wrap.c</tt>.
|
||||
<li>Put the gcc compiled object file into a shared library;
|
||||
e.g., <tt>gcc -shared -o example.so example_wrap.o</tt>.
|
||||
<li>Also compile the actual code, not generated by SWIG; e.g., <tt>gcc
|
||||
-c -O -fpic example.c</tt>.
|
||||
<li>Put the gcc compiled object files into a shared library;
|
||||
e.g., <tt>gcc -shared -o example.so example_wrap.o example.o</tt>.
|
||||
<li>Compile the program which demonstrates how to use the library;
|
||||
e.g., <tt>6g runme.go</tt>.
|
||||
<li>Link the program; e.g., <tt>6l -o runme runme.6</tt>.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue