The correct approach is to use .mm for your file extension.
···
Amine Ifri <amine.ifri@gmail.com> 於 2017年10月6日 上午2:39 寫道:
Hi community,
As I have recently upgraded my OS and IDE on Mac to Xcode 9.0, I have recompiled successfully QuantLib using c++11/ libc++.
I am in the process of building a small application that relies on QL. However, I run into a very irritating problem - that doesn’t have anything to do with QL - that has kept me from being productive today. Apparently, it is related to the <cmath> header which includes the C-header <math.h> and imports some of its functionalities into the std namespace, but I end up with a bunch of errors stating that for the following functions:
using ::signbit;
using ::fpclassify;
using ::isfinite;
using ::isinf;
using ::isnan;
using ::isnormal;
using ::isgreater;
using ::isgreaterequal;
using ::isless;
using ::islessequal;
using ::islessgreater;
using ::isunordered;
using ::isunordered;They can’t be found in the global namespace. I have spent a lot of time on the web looking for a solution, but haven’t been any successful. If any of you has ever encountered such issue and is willing to help, I would be very very grateful.
Thanks,
Amine------------------------------------------------------------------------------
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
QuantLib-users@lists.sourceforge.net
quantlib-users List Signup and Options