Login  Register

Re: Building 0.3.12 Java SWIG in Mac OS X

Posted by Ken Anderson-2 on Apr 26, 2006; 8:55am
URL: http://quantlib.414.s1.nabble.com/Building-0-3-12-Java-SWIG-in-Mac-OS-X-tp4745p4746.html

Sorry - one important point that was missing - I get errors for  
missing symbols when linking:

ld: Undefined symbols:
__ZN5boost16assertion_failedEPKcS1_S1_l
__ZN8QuantLib10DateParser5parseERKSsS2_
__ZN8QuantLib10JarrowRuddC1ERKN5boost10shared_ptrINS_19StochasticProcess
1DEEEdmd
__ZN8QuantLib10McHimalayaC1ERKSt6vectorIdSaIdEERKS1_INS_6HandleINS_18Yie
ldTermStructureEEESaIS8_EERKS8_RKS1_INS6_INS_21BlackVolTermStructureEEES
aISG_EERKNS_6MatrixEdS5_m

...

Ken

On Apr 26, 2006, at 10:49 AM, Ken Anderson wrote:

> I'm having a very hard time getting a compiled and linked version  
> of quantlib_wrap.cpp in the Java directory of the SWIG project.  
> Whenever I try to make, it says there's nothing to make in the Java  
> directory:
>
> Making all in CSharp
> make  all-am
> make[2]: Nothing to be done for `all-am'.
> Making all in Guile
> make  all-am
> make[2]: Nothing to be done for `all-am'.
> Making all in Java
> make  all-am
> make[2]: Nothing to be done for `all-am'.
>
> All the boost libraries and quantlib libraries (static only) are  
> built into /usr/local/lib with headers in /usr/local/include.
>
> I've tried all manner of combinations of compiler flags to get this  
> to work.  I can get it to successfully compile into a .o, but I  
> cannot get it to output a jnilib file.  Has anyone gotten this to  
> work on any Unix flavor?
>
> By the way, I get 3.11 to link with this:
>
> g++ -dynamiclib -l QuantLib -l QuantLibFunctions -l QuantLib-0.3.11  
> -o libQuantLibJNI.jnilib quantlib_wrap.o -framework JavaVM
>
> Thanks,
> Ken
>
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Quantlib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users