LLVM标头错误:全局名称空间(iOS,C ++ Builder)中没有名为“ xxxxxx”的成员

时间:2018-08-08 20:56:12

标签: ios firemonkey c++builder llvm-clang

环境描述::我使用的是RAD Studio 10.2.3 Tokyo,已安装所有修补程序,XCode 9.4.1,macOS High Sierra 10.13.6,iOS SDK 11.4,PAServer 10.3.1.10。 / p>

问题::当我尝试为32位iOS编译空白应用程序时,该应用程序成功运行,并且该应用程序在我的设备上运行。但是,如果我包含- (void)processError:(NSError **) error { NSError *unzippingError = nil; // error value which will be assigned inside `@autoreleasepool` block NSError *err = nil; // it will hold the copy of error outside block @autoreleasepool { unzippingError = [NSError errorWithDomain:@"Domain" code:-1 userInfo:@{NSLocalizedDescriptionKey:@"Error message"}]; //copy the error in another variable to keep reference after @autoreleasepool block err = [unzippingError copy]; } if (error) { * error = err; } } ,则在编译期间会出现以下错误:

<cmath>

我正在搜索有关内容,发现了这一点:

https://forums.developer.apple.com/thread/87814

这是相同的错误,这是由于“如果您将isssroot和isystem结合使用”

以同样的方式,我在SO中找到了一个相关主题:

Missing/wrong headers iOS 11.3 SDK

我想知道,如何解决此问题?建议的答案是不要同时使用 isysroot和isystem ,而是在编译过程中由IDE自动生成命令选项。因此,如果您有解决此问题的修复程序或解决方法,请告诉我。

最小且可验证的代码:只需在C ++ Builder中创建一个空白应用程序,并将[bcciosarm Error] cmath(313): no member named 'signbit' in the global namespace [bcciosarm Error] cmath(314): no member named 'fpclassify' in the global namespace [bcciosarm Error] cmath(315): no member named 'isfinite' in the global namespace [bcciosarm Error] cmath(316): no member named 'isinf' in the global namespace [bcciosarm Error] cmath(317): no member named 'isnan' in the global namespace [bcciosarm Error] cmath(318): no member named 'isnormal' in the global namespace [bcciosarm Error] cmath(319): no member named 'isgreater' in the global namespace [bcciosarm Error] cmath(320): no member named 'isgreaterequal' in the global namespace [bcciosarm Error] cmath(321): no member named 'isless' in the global namespace [bcciosarm Error] cmath(322): no member named 'islessequal' in the global namespace [bcciosarm Error] cmath(323): no member named 'islessgreater' in the global namespace [bcciosarm Error] cmath(324): no member named 'isunordered' in the global namespace [bcciosarm Error] cmath(325): no member named 'isunordered' in the global namespace 标头包含在<cmath>中即可。

0 个答案:

没有答案