开发者

xcode is not even *trying* to compile some of my .mm files, then fails while linking

开发者 https://www.devze.com 2023-02-07 03:19 出处:网络
I\'m copying some objective c++ files over from another (working) project. I get no errors when compiling, but get a linker error:

I'm copying some objective c++ files over from another (working) project.

I get no errors when compiling, but get a linker error:

Undefined symbols:

"_OBJC_CLASS_$_Buzzy2", referenced from: objc-cla开发者_StackOverflow中文版ss-ref-to-Buzzy2 in AudioModeFactory.o ld: symbol(s) not found collect2: ld returned 1 exit status

Looking over the compiler output, I see that xcode never even tried to compile this class. The .h and .mm for the class are there in the source. Its header is imported in to another class, and there are no compiler complaints about that, but the compiler never touches it. I've tried cleaning all targets, touching the files, with no luck. Any idea what's going on here?


Check the target settings of the .mm files to make sure you have the right targets checked.

0

精彩评论

暂无评论...
验证码 换一张
取 消