Working with Quantlib in Lion

I’ve successfully built quantlib on Mac OS 10.11.3 (there is libQuantlib.a in /usr/local/lib). But know when I try to use it in my own project with Clion it doesn’t work. More specifically, I added Boost paths in Cmakelists.txt (it works properly) and then Quantlib paths in a following way:
set(QUANT_ROOT “/usr/local”)


when I write in main.cpp:

#include <ql/quantlib.hpp>

It finds this file, but when I build the following error appears:

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1

Could you help me please with this issue?

1 comment
Comment actions Permalink

Hi Emma.

Please take a look at our blog post about using quantlib in CLion:


Please sign in to leave a comment.