From: SourceForge.net <no...@so...> - 2012-07-19 12:05:27
|
Bugs item #3545853, was opened at 2012-07-19 05:05 Message generated for change (Tracker Item Submitted) made by 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: Open Resolution: None 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 gcc -c example_wrap.c example.c -I/usr/lib/jvm/java-6-openjdk/include -I/usr/lib/jvm/java-6-openjdk/include/linux ld -G example_wrap.o example.o -o libexample.so Best regards. Javi ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3545853&group_id=1645 |