在iOS项目中使用外部FreeVerb C++类时发生链接器错误

linker error using external FreeVerb C++ classes in iOS project

本文关键字:链接 错误 C++ FreeVerb 项目 iOS 外部      更新时间:2023-10-16

我正在尝试在音频合成项目中使用freeverb混响库。我已经将源文件添加到Xcode项目中,但当我想使用库中的类时,我会收到一个链接器错误:

Undefined symbols for architecture i386:
"fv3::nrevb_::nrevb_()", referenced from:
  -[FreeVerbModule .cxx_construct] in FreeVerbModule.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status

我应该担心i386架构的问题吗?我对C++了解不多,希望只使用这个库。它使用了很多我无法真正阅读的C++内容,并包含以下内容:

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <new>
#include <fftw3.h>
#include <omp.h>
#include <cstdarg>
#include <vector>
#include <stdint.h>

项目成功构建,我还需要将这些添加到项目中吗?

原谅我的愚蠢。

您是否遇到此处讨论的32位与64位的问题?