SourceForge.net | 5 Aug 2012 13:04
Picon

[ swig-Bugs-3545853 ] Incomplete compilation command line

Bugs item #3545853, was opened at 2012-07-19 05:05
Message generated for change (Comment added) made by wsfulton
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3545853&group_id=1645

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: documentation
Group: None
>Status: Closed
>Resolution: Duplicate
Priority: 5
Private: No
Submitted By: Javi ()
Assigned to: David M. Beazley (beazley)
Summary: Incomplete compilation command line

Initial Comment:
Hi,

i have no previous experience with SWIG and very little with C, but regarding the Java - C documentation (PDF
and HTML versions) for the latest 2.0 release chapter '24.2.4 Compiling a dynamic module', i wasn't able
to get it running: The commnads as stated in the docs:
$ 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

For it to work i had to add the example.c files for compile and link, so the commands look like this:
swig -java example.i
(Continue reading)


Gmane