0

I try to get QuantLib working on my macbook. But I don't know how to interpret the note in the instructions:

A note on Mac OS X 10.9 (Mavericks)

Users have reported linking problems under Mac OS X 10.9; the solution (thanks to Albert Azout for pointing it out) seems to be to set the environment flags CXXFLAGS and LDFLAGS to -stlib=libstdc++ -mmacosx-version-min=10.6 before compiling.

Can someone enlighten me?

4

1 回答 1

2

假设您按照此处的说明进行操作,您将从命令行进行编译。在这种情况下,您可以通过几种方式设置变量;我认为最方便的是将它们传递给configure

./configure --enable-static --with-boost-include=/opt/local/include/ \
            --with-boost-lib=/opt/local/lib/ --prefix=/opt/local/ \
            CXXFLAGS="-stlib=libstdc++ -mmacosx-version-min=10.6" \
            LDFLAGS="-stlib=libstdc++ -mmacosx-version-min=10.6"

之后,它们将被用于make构建库。

(如果您使用的是 IDE,恐怕您自己一个人;您必须参考它的手册

于 2014-05-13T12:58:44.960 回答