Make program compile faster. Precompile the quantlib header?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Make program compile faster. Precompile the quantlib header?

vgdev
Hi,

I am relatively new to Quantlib, so this might be a dumb question. I want to reduce the compilation time of my program by trying to precompile the ql/quantlib.hpp header, as I do not alter any of the Quantlib header files.

I guess a smarter way to reduce the compilation time would be not to include the full header, but I am having trouble including the correct (or enough) headers to make my code running.

Do anyone know how one can precompile the entire Quantlib header? I tried to do something similar to this (http://manski.net/2011/11/precompiled-headers/) , but it did not work.

I appreciate any ideas regarding this matter.