1

我需要在 c++11 和 LLVM 中编译一个静态库。该库使用 Accelerated 框架,其中包括 veclib 框架。

由于我使用 c++11,我有一些错误,例如:

subscript of pointer to incomplete type 'const std::complex<float>'
forward declaration of 'std::complex<float>'

前向声明是在“/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/vecLib.framework/Headers/vForce.h “ 文件。

一切都用标准库编译得很好。

有人遇到过这个问题吗?

4

1 回答 1

0

我只是将 cstdlib 文件包含在有问题的文件的顶部。

#include <cstdlib>
于 2013-05-27T09:15:21.133 回答