|
From: <cay...@fr...> - 2022-12-16 20:25:47
|
Ciao Jake, I have never tried to build QuantLib on MinGW, but: Since you are building a C++ library, you need to build the whole thing, the least you have to build is the QuantLib itself excluding the examples and tests. But once you have managed to build QuantLib, you might just as well build the other stuff, too. So, there is no shortcut I am afraid. (Of course, in theory, you could create your own project ‘Sub-QuantLib’ with only calendar.cpp and all its dependencies. But this would require painfully finding out all the dependencies of calendar.cpp and removing all the overhead in for instance configure.hpp. In practice, this would not be advisable, really. And it wouldn’t be a shortcut either.) The best way to tackle this kind of problem in C++ is usually to present the specific linker errors. Since you mentioned boost specifically, my first guess would be that either the linker cannot find the boost libraries, or you have an incompatible glibc version. But once again, the specific linker errors are key here. Cheers, Cay From: Jake Heke <jak...@gm...> Sent: Freitag, 16. Dezember 2022 20:10 To: qua...@li... Subject: [Quantlib-users] How to partially build and test the QuantLib solution Hello experts, I am a new QuantLib user, currently trying to build the solution on Windows with Visual Studio Code, Boost, CMake and MinGW. I am still not able to build it because I am getting a good list of linking errors. Anyway, let's suppose that I want to build and test only the functionalities containted in the source file \QuantLib\ql\time\calendar.cpp (with all the required dipendences of course). According to your experience, is there a way to do it, or in order to test the calendar functionalities I am forced to build the whole solution? I apologize for the newbie question and thank you in advance for your time. Best, W. |