Hi,
I have to use QuantLib in Java, so I'm trying to use Swig (Eclipse 3.2, Cygwin, SkWash, Windows XP). With Quantlib 0.3.11 (and the associated SWIG 0.3.11) it works great, but when I want to use QuantLib 0.8.0 , the compiler crashes everytime I try to compile the CPP Wrapper, with the following message : Building target: QuantLibCPPWraper.dll Invoking: GCC C++ Linker g++ -L"C:\workspace\QuantLib\Debug" -mno-cygwin -Wl,--add-stdcall-alias -shared -o" QuantLibCPPWraper.dll" ./cppwrapper.o -lQuantLib collect2: ld terminated with signal 11 [Segmentation fault], core dumped Info: resolving vtable for QuantLib::Errorby linking to __imp___ZTVN8QuantLib5ErrorE (auto-import) Info: resolving vtable for QuantLib::EulerDiscretizationby linking to __imp___ZTVN8QuantLib19EulerDiscretizationE (auto-import) Info: resolving VTT for QuantLib::CompositeInstrument by linking to __imp___ZTTN8QuantLib19CompositeInstrumentE (auto-import) Info: resolving vtable for QuantLib::CompositeInstrumentby linking to __imp___ZTVN8QuantLib19CompositeInstrumentE (auto-import) Info: resolving vtable for QuantLib::AnalyticEuropeanEngineby linking to __imp___ZTVN8QuantLib22AnalyticEuropeanEngineE (auto-import) Info: resolving VTT for QuantLib::OneAssetOption::argumentsby linking to __imp___ZTTN8QuantLib14OneAssetOption9argumentsE (auto-import) Info: resolving vtable for QuantLib::OneAssetOption::argumentsby linking to Have you got any idea of what It's going on ? Why It works perfectly with 0.3.11 and not with 0.8.0 ? I tried on 2 differents computers, I read the tutorial of SkWash, and I'm desperate :). I'm ready to offer some French Champagne if you can help me :) Thx for all Guillaume ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-dev mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-dev |
Guillaume
I've never had any luck compiling SWIG with Eclipse/SkWash. However, i have no problems doing the compilation with QuantLib-SWIG with Java bindings on command-line on MacOS 10.4.8 or on Ubuntu Linux. Not sure if this is helpful to you and if you specifically need it on Windows only. Perhaps you can do this all under Cygwin? here are the commands i used on Mac/Linux: Configure/compile main QuantLib distribution ./configure --with-boost-include=/usr/local/bin make make install For QuantLib-SWIG: Run ./configure and make -C Java. You'll need to specify the locations of JDK directories with these flags: --with-jdk-include and --with-jdk-system-include ./configure --with-jdk-include=<path to jre include> --with-jdk-system-include=<path to platform specific system include> make install This will try installing the bindings into the JRE's directory, so you may want to specify a local folder with --prefix if you don't need it. Also, make sure your PATH variable has a quantlib-config in the list. hope this helps. On 8/24/07, Guillaume et Sandrine Dru <[hidden email]> wrote: > Hi, > I have to use QuantLib in Java, so I'm trying to use Swig (Eclipse 3.2, > Cygwin, SkWash, Windows XP). > With Quantlib 0.3.11 (and the associated SWIG 0.3.11) it works great, but > when I want to use QuantLib 0.8.0 , the compiler crashes everytime I try to > compile the CPP Wrapper, with the following message : > > Building target: QuantLibCPPWraper.dll > Invoking: GCC C++ Linker > g++ -L"C:\workspace\QuantLib\Debug" -mno-cygwin -Wl,--add-stdcall-alias > -shared -o" QuantLibCPPWraper.dll" ./cppwrapper.o -lQuantLib > collect2: ld terminated with signal 11 [Segmentation fault], core dumped > Info: resolving vtable for QuantLib::Errorby linking to > __imp___ZTVN8QuantLib5ErrorE (auto-import) > Info: resolving vtable for QuantLib::EulerDiscretizationby linking to > __imp___ZTVN8QuantLib19EulerDiscretizationE (auto-import) > Info: resolving VTT for QuantLib::CompositeInstrument by linking to > __imp___ZTTN8QuantLib19CompositeInstrumentE (auto-import) > Info: resolving vtable for QuantLib::CompositeInstrumentby linking to > __imp___ZTVN8QuantLib19CompositeInstrumentE (auto-import) > Info: resolving vtable for > QuantLib::AnalyticEuropeanEngineby linking to > __imp___ZTVN8QuantLib22AnalyticEuropeanEngineE > (auto-import) > Info: resolving VTT for > QuantLib::OneAssetOption::argumentsby linking to > __imp___ZTTN8QuantLib14OneAssetOption9argumentsE > (auto-import) > Info: resolving vtable for > QuantLib::OneAssetOption::argumentsby linking to > > Have you got any idea of what It's going on ? Why It works perfectly with > 0.3.11 and not with 0.8.0 ? > I tried on 2 differents computers, I read the tutorial of SkWash, and I'm > desperate :). > I'm ready to offer some French Champagne if you can help me :) > > Thx for all > > Guillaume > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > QuantLib-dev mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-dev > > -- Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-dev mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-dev |
Free forum by Nabble | Edit this page |