I am working on a cpp code to port one application from Windows to Mac. While building the application in Xcode it throws the error saying:
"Use of undeclared identifier 'nothrow'; did you mean 'throw'? memory"
These errors are thrown in cpp standard library headers.
Below is the error stack description:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1/memory:83:8: Use of undeclared identifier 'nothrow'; did you mean 'throw'?
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1/string:48:10: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1/string:48:
I searched in internet but was unable to find the solution for this problem. Any suggestions will be helpful. Why the error is thrown from the system header files?
System Details:
SDK is OSX 10.10.
Compiler option used to compile the application is C++ Standard Library:
libc++(LLVM C++ Standard with C++11 support. C++ Language Dialect: GNU++11. Compiler for C++ : Apple LLVM 6.0