Re: Reg Building Quantlib with selective packages [Configure options]
Posted by
Luigi Ballabio on
Feb 09, 2017; 11:33am
URL: http://quantlib.414.s1.nabble.com/Reg-Building-Quantlib-with-selective-packages-Configure-options-tp18068p18071.html
Building QuantLib with
./configure --disable-shared
will only build a static library, and the linker will include in your program the parts that it needs.
Luigi
Hi,
I am trying to write a small program to calculate risk.
I am using very limited Classes/variables/methods of the Qualtib library (like Quantlib::BlackCalculator, Quantlib::blackFormulaImpliedStdDev, and exception class like Quantlib::Error).
While building I am configuring with the --enable-sessions options [different instances for different sessions).
However I see that the default size of the libQuantlib.so.0 compiles to around ~350 MB, which is kind of an overkill for my program. (Also copying the program along with library is a big pain).
Is there any way I can build a part of the source which will reduce the size of the library and still contain the above libraries/methods/classes.
I can see that the ./configure --help does give an options like --with-PACKAGE . Is there some way I can build a part of the source code to achieve my goal.
I couldnt locate anything while searching. Any help/pointers would be appreciated.
thanks,
Parag
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org!
http://sdm.link/slashdot_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users