Make program compile faster. Precompile the quantlib header?

Posted by vgdev on
URL: http://quantlib.414.s1.nabble.com/Make-program-compile-faster-Precompile-the-quantlib-header-tp16490.html

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.