尝试使用 Cmath.h
库时出现以下错误:
#import <Foundation/Foundation.h>
#import <math.h>
@interface Filter : NSObject {
float cutoff;
float resonance;
float sampleRate;
float *f;
float freq;
float damp;
}
- (float)filter:(float)input;
@end
你能告诉我如何解决这个错误吗?该min()
函数似乎无法编译为 armv7 架构。
Undefined symbols for architecture armv7:
"_min", referenced from:
-[Filter init] in Filter.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)