diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2012-08-05 11:02:49 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2012-08-05 11:02:49 +0000 |
commit | a358958e727d2e0507e75e309a8bcdeeceaf0eb1 (patch) | |
tree | ec9c7e8a662350cdc3fc30e66a4bba2967f18652 /Doc | |
parent | 4305a3cef9b210541c3b88ab2fd03d787c3bca66 (diff) | |
download | swig-a358958e727d2e0507e75e309a8bcdeeceaf0eb1.tar.gz |
Update docs with missing example.c compilation - Bug 3545858
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13514 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/Manual/Java.html | 5 | ||||
-rw-r--r-- | Doc/Manual/Lua.html | 2 | ||||
-rw-r--r-- | Doc/Manual/Perl5.html | 4 | ||||
-rw-r--r-- | Doc/Manual/Ruby.html | 3 | ||||
-rw-r--r-- | Doc/Manual/Tcl.html | 3 |
5 files changed, 10 insertions, 7 deletions
diff --git a/Doc/Manual/Java.html b/Doc/Manual/Java.html index 2473e7cd1..8a081f46d 100644 --- a/Doc/Manual/Java.html +++ b/Doc/Manual/Java.html @@ -326,12 +326,13 @@ The exact location may vary on your machine, but the above locations are typical <p> The JNI code exists in a dynamic module or shared library (DLL on Windows) and gets loaded by the JVM. -To build a shared library file, you need to compile your module in a manner similar to the following (shown for Solaris):</p> +Assuming you have code you need to link to in a file called <tt>example.c</tt>, in order to build a shared library file, you need to compile your module in a manner similar to the following (shown for Solaris):</p> <div class="code"><pre> $ swig -java example.i $ gcc -c example_wrap.c -I/usr/java/include -I/usr/java/include/solaris -$ ld -G example_wrap.o -o libexample.so +$ gcc -c example.c +$ ld -G example_wrap.o example.o -o libexample.so </pre></div> <p> diff --git a/Doc/Manual/Lua.html b/Doc/Manual/Lua.html index ec32c4449..1fd41f907 100644 --- a/Doc/Manual/Lua.html +++ b/Doc/Manual/Lua.html @@ -236,7 +236,7 @@ More information on building and configuring eLua can be found here: <a href="ht <p> -Most, but not all platforms support the dynamic loading of modules (Windows & Linux do). Refer to the Lua manual to determine if your platform supports it. For compiling a dynamically loaded module the same wrapper can be used. The commands will be something like this: +Most, but not all platforms support the dynamic loading of modules (Windows & Linux do). Refer to the Lua manual to determine if your platform supports it. For compiling a dynamically loaded module the same wrapper can be used. Assuming you have code you need to link to in a file called <tt>example.c</tt>, the commands will be something like this: </p> <div class="shell"><pre> $ swig -lua example.i -o example_wrap.c diff --git a/Doc/Manual/Perl5.html b/Doc/Manual/Perl5.html index 0a4b61bd5..49e8965fa 100644 --- a/Doc/Manual/Perl5.html +++ b/Doc/Manual/Perl5.html @@ -170,8 +170,8 @@ $ perl -e 'use Config; print "$Config{archlib}\n";' <p> The preferred approach to building an extension module is to compile it into -a shared object file or DLL. To do this, you will need to compile your program -using commands like this (shown for Linux): +a shared object file or DLL. Assuming you have code you need to link to in a file called <tt>example.c</tt>, +you will need to compile your program using commands like this (shown for Linux): </p> <div class="code"><pre> diff --git a/Doc/Manual/Ruby.html b/Doc/Manual/Ruby.html index 69005c731..969de7a3d 100644 --- a/Doc/Manual/Ruby.html +++ b/Doc/Manual/Ruby.html @@ -398,7 +398,8 @@ can add this: </p> <p> to the end of the <tt>extconf.rb</tt> file. If for some reason you don't want to use the standard approach, you'll need to determine the correct compiler and linker flags for your build -platform. For example, a typical sequence of commands for the Linux +platform. For example, assuming you have code you need to link to in a file +called <tt>example.c</tt>, a typical sequence of commands for the Linux operating system would look something like this: </p> diff --git a/Doc/Manual/Tcl.html b/Doc/Manual/Tcl.html index f55a7f139..e6b3b4a43 100644 --- a/Doc/Manual/Tcl.html +++ b/Doc/Manual/Tcl.html @@ -132,7 +132,8 @@ header file. <p> The preferred approach to building an extension module is to compile it into -a shared object file or DLL. To do this, you will need to compile your program +a shared object file or DLL. Assuming you have code you need to link to in a file +called <tt>example.c</tt>, you will need to compile your program using commands like this (shown for Linux): </p> |