Re: Quantlib with Xcode 8 on Mac 12.3 Sierra
Posted by
Luigi Ballabio on
Mar 01, 2017; 3:28pm
URL: http://quantlib.414.s1.nabble.com/Quantlib-with-Xcode-8-on-Mac-10-12-Sierra-tp18116p18133.html
Hello,
I'm not using Xcode myself, but from the error it seems that the Boost headers include some c++11 feature that the compiler doesn't recognize even though it's running in gnu++0x mode. I'd try changing the C++ Language Dialect. You can try c++11 if you want to use it, or c++03 if you don't.
Luigi
Hello Everybody,
I would like to use QuantLib 1.9.1 with Xcode 8 IDE on MacOs Sierra.
I installed everything successfully and the example bermudaSwaption is
working:
g++ -O2 -stdlib=libstdc++ -mmacosx-version-min=10.6 -I/usr/local/include/
-I/usr/local/include/boost BermudanSwaption.cpp -o bermudanswaption
-L/usr/local/lib/ -lQuantLib
Still i didn't succeed in using QuantLib on Xcode:
I'm currently using the following settings:
- #include <ql/quantlib.hpp> in the code
- Build Settings:
Header search paths: /opt/local/include /opt/local/include/boost
Library search paths: /opt/local/lib
C++ Language Dialect: gnu++0x
C++ Standard Library: libstdc++
Apple LLVM 8.0 - Custom Compiler Flags: Other C++ Flags:
-mmacosx-version-min=10.6
Linking: Other Linker Flags: -IQuantLib
- Build Phases: Link Binary With Libraries: libQuantLib.0.dylib
but getting multiple time the following error:
No template named 'forward' in namespace 'std'; did you mean simply
'forward'?
/opt/local/include/ql/quantlib.hpp:43:10: In file included from
/opt/local/include/ql/quantlib.hpp:43:
/opt/local/include/ql/experimental/all.hpp:12:10: In file included from
/opt/local/include/ql/experimental/all.hpp:12:
/opt/local/include/ql/experimental/credit/all.hpp:4:10: In file included
from /opt/local/include/ql/experimental/credit/all.hpp:4:
/opt/local/include/ql/experimental/credit/basecorrelationlossmodel.hpp:32:10:
In file included from
/opt/local/include/ql/experimental/credit/basecorrelationlossmodel.hpp:32:
/opt/local/include/ql/experimental/credit/gaussianlhplossmodel.hpp:29:10: In
file included from
/opt/local/include/ql/experimental/credit/gaussianlhplossmodel.hpp:29:
/opt/local/include/ql/experimental/math/latentmodel.hpp:29:10: In file
included from /opt/local/include/ql/experimental/math/latentmodel.hpp:29:
/opt/local/include/ql/experimental/math/tcopulapolicy.hpp:26:10: In file
included from /opt/local/include/ql/experimental/math/tcopulapolicy.hpp:26:
/opt/local/include/boost/math/distributions/students_t.hpp:16:10: In file
included from /opt/local/include/boost/math/distributions/students_t.hpp:16:
/opt/local/include/boost/math/special_functions/beta.hpp:15:10: In file
included from /opt/local/include/boost/math/special_functions/beta.hpp:15:
/opt/local/include/boost/math/special_functions/gamma.hpp:2027:10: In file
included from
/opt/local/include/boost/math/special_functions/gamma.hpp:2027:
/opt/local/include/boost/math/special_functions/detail/igamma_inverse.hpp:13:10:
In file included from
/opt/local/include/boost/math/special_functions/detail/igamma_inverse.hpp:13:
/opt/local/include/boost/math/tools/tuple.hpp:67:10: In file included from
/opt/local/include/boost/math/tools/tuple.hpp:67:
/opt/local/include/boost/fusion/include/tuple.hpp:11:10: In file included
from /opt/local/include/boost/fusion/include/tuple.hpp:11:
/opt/local/include/boost/fusion/tuple.hpp:11:10: In file included from
/opt/local/include/boost/fusion/tuple.hpp:11:
/opt/local/include/boost/fusion/tuple/tuple.hpp:16:11: In file included from
/opt/local/include/boost/fusion/tuple/tuple.hpp:16:
/opt/local/include/boost/fusion/tuple/detail/tuple.hpp:12:10: In file
included from /opt/local/include/boost/fusion/tuple/detail/tuple.hpp:12:
/opt/local/include/boost/fusion/container/vector/vector.hpp:12:10: In file
included from
/opt/local/include/boost/fusion/container/vector/vector.hpp:12:
/opt/local/include/boost/fusion/container/vector/vector_fwd.hpp:16:11: In
file included from
/opt/local/include/boost/fusion/container/vector/vector_fwd.hpp:16:
/opt/local/include/boost/fusion/container/vector/detail/cpp03/vector_fwd.hpp:15:10:
In file included from
/opt/local/include/boost/fusion/container/vector/detail/cpp03/vector_fwd.hpp:15:
/opt/local/include/boost/fusion/container/vector/detail/cpp03/vector10.hpp:66:10:
In file included from
/opt/local/include/boost/fusion/container/vector/detail/cpp03/vector10.hpp:66:
I really don't understand what i'am doing wrong..
Thanks,
------------------------------------
--
View this message in context: http://quantlib.10058.n7.nabble.com/Quantlib-with-Xcode-8-on-Mac-12-3-Sierra-tp18116.html
Sent from the quantlib-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org!
http://sdm.link/slashdot_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users