简体   繁体   English

从iOS示例项目导入cpp文件时找不到架构armv7的符号

[英]symbol(s) not found for architecture armv7 when importing cpp file from iOS Sample Project

All, 所有,

I have downloaded a Sample Project for Audio conversion: https://developer.apple.com/LIBRARY/IOS/samplecode/iPhoneExtAudioFileConvertTest/Introduction/Intro.html 我已经下载了一个用于音频转换的示例项目: https : //developer.apple.com/LIBRARY/IOS/samplecode/iPhoneExtAudioFileConvertTest/Introduction/Intro.html

I had to take away all CAXException codes and CADebugPrintf codes. 我必须带走所有CAXException代码和CADebugPrintf代码。 But then when I was trying to call the ExtAudioFileConvert.cpp's DoConvertFile function, it shows 但是当我尝试调用ExtAudioFileConvert.cpp的DoConvertFile函数时,它显示

"_DoConvertFile", referenced from: .... ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) “ _DoConvertFile”,引用自:.... ld:找不到体系结构armv7铛的符号:错误:链接器命令失败,退出代码为1(使用-v查看调用)

Please help. 请帮忙。

Followed this post to remove "Preprocessor Macros" Setting 关注此帖子以删除“预处理器宏”设置

iOS,CoreAudio: a strange 'CADebugPrintf.h: no such file or directory ... ' error iOS,CoreAudio:奇怪的“ CADebugPrintf.h:没有此类文件或目录...”错误

and followed this post to add a .mm file as C++ wrapper to call DoConvertFile 然后按照这篇文章添加一个.mm文件作为C ++包装器,以调用DoConvertFile

How to add C/C++ functions to Objective-C code (iphone related) 如何将C / C ++函数添加到Objective-C代码(与iPhone相关)

Problem fixed! 问题已解决!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM