*** empty log message ***

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-02-08 12:43:08 +00:00
commit 853994dab8
2 changed files with 5 additions and 5 deletions

View file

@ -48,7 +48,7 @@ of SWIG include:
<li>Making a graphical user interface (using Tk for example). <li>Making a graphical user interface (using Tk for example).
<li>Testing of C libraries and programs (using scripts). <li>Testing of C libraries and programs (using scripts).
<li>Building high performance C modules for scripting languages. <li>Building high performance C modules for scripting languages.
<li>Making C programming more enjoyable (or tolerable depending on your point of view) <li>Making C programming more enjoyable (or tolerable depending on your point of view).
<li>Impressing your friends. <li>Impressing your friends.
<li>Obtaining vast sums of research funding (although obviously not applicable to the author). <li>Obtaining vast sums of research funding (although obviously not applicable to the author).
</ul> </ul>
@ -229,7 +229,7 @@ any changes type the following (shown for Solaris):<p>
<blockquote><pre>unix &gt; <b>swig -perl5 example.i</b> <blockquote><pre>unix &gt; <b>swig -perl5 example.i</b>
unix &gt; <b>gcc -c example.c example_wrap.c \ unix &gt; <b>gcc -c example.c example_wrap.c \
-I/usr/local/lib/perl5/sun4-solaris/5.003/CORE</b> -I/usr/local/lib/perl5/sun4-solaris/5.003/CORE</b>
unix&gt; <b>ld -G example.o example_wrap.o -o example.so</b> # This is for Solaris unix &gt; <b>ld -G example.o example_wrap.o -o example.so</b> # This is for Solaris
unix &gt; <b>perl5.003 unix &gt; <b>perl5.003
use example; use example;
print example::fact(4), "\n"; print example::fact(4), "\n";
@ -274,10 +274,10 @@ it. For example, you could also build a Perl5 module by just running
SWIG on the C header file and specifying a module name as follows<p> SWIG on the C header file and specifying a module name as follows<p>
<p> <p>
<blockquote><pre>unix&gt; <b>swig -perl5 -module example example.h</b> <blockquote><pre>unix &gt; <b>swig -perl5 -module example example.h</b>
unix &gt; <b>gcc -c example.c example_wrap.c \ unix &gt; <b>gcc -c example.c example_wrap.c \
-I/usr/local/lib/perl5/sun4-solaris/5.003/CORE</b> -I/usr/local/lib/perl5/sun4-solaris/5.003/CORE</b>
unix&gt; <b>ld -G example.o example_wrap.o -o example.so</b> unix &gt; <b>ld -G example.o example_wrap.o -o example.so</b>
unix &gt; <b>perl5.003 unix &gt; <b>perl5.003
use example; use example;
print example::fact(4), "\n"; print example::fact(4), "\n";

View file

@ -264,7 +264,7 @@ Now, compiling (Python):
<pre> <pre>
$ swig -proxy -python -c++ pair.i $ swig -proxy -python -c++ pair.i
$ c++ -c pair_wrap.c -I/usr/local/include/python2.1 $ c++ -c pair_wrap.c -I/usr/local/include/python2.1
$ c++ -shared pair_wrap.c -o paircmodule.so $ c++ -shared pair_wrap.o -o paircmodule.so
$ python $ python
Python 2.1 (#3, Aug 20 2001, 15:41:42) Python 2.1 (#3, Aug 20 2001, 15:41:42)
[GCC 2.95.2 19991024 (release)] on sunos5 [GCC 2.95.2 19991024 (release)] on sunos5