chrmarti / testissues

2 stars 3 forks source link

Error C++ project with Quantlib library using Mac OS #1426

Open vscodebot[bot] opened 4 years ago

vscodebot[bot] commented 4 years ago

Hi everyone,

I use VSCODE with the extension C/C++, on Mac OS.

I am trying to run an exemple of .cpp implemented with the Quantlib library, to verify my configuration :

https://www.quantlib.org/reference/_bermudan_swaption_8cpp-example.html!_a30

But when I try to Build it I have this error message on the terminal


Undefined symbols for architecture x86_64:
  "boost::assertion_failed(char const*, char const*, char const*, long)", referenced from:
      boost::shared_ptr<QuantLib::Observable>::operator->() const in BermudianSwaptionExemple-88f6e5.o
...
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The terminal process terminated with exit code: 1

Do you have any idea of how I could solve this problem? Thanks!!!

vscodetestbot[bot] commented 4 years ago

Our issue tracking requires confirmation by a second community member. Anyone but OP can do so by adding a comment /confirm. See also our issue reporting guidelines.

Happy Coding!