QuantLib in Java
Posted by
Tanvi Tiwari on
URL: http://quantlib.414.s1.nabble.com/QuantLib-in-Java-tp16679.html
Hello everyone,
I am trying to understand how to use QuantLib in Java, but have been confused as to the process for a few weeks. I found QuantLib-SWIG-1.5.zip on SourceForge, which seems to have all the .i and the .java, files, as well as a file called quantlib_wrap.cpp.
The README says to follow
these instructions, but it is a bit confusing. Do I need to even tough SWIG or sKWash, because I already have the .java files?
$ swig -java example.i
$ gcc -c example.c example_wrap.c -I/c/jdk1.3.1/include -I/c/jdk1.3.1/include/win32
$ gcc -shared example.o example_wrap.o -mno-cygwin -Wl,--add-stdcall-alias -o example.dll
This makes me think that for each .cpp file in QuantLib, we'd need a wrap.cpp file to correspond and compile it with. Instead, I notice one huge quantlib_wrap.cpp (and quantlib_wrap.h) files. What commands need to be typed in?
Basically, if someone could provide me with a detailed guide on how to take the materials in QuantLib-SWIG-1.5.zip and turn it into a functioning QuantLib in Java, I would really appreciate it!
Thanks,
Tanvi
--
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users