• <i id='tg6wD'><tr id='tg6wD'><dt id='tg6wD'><q id='tg6wD'><span id='tg6wD'><b id='tg6wD'><form id='tg6wD'><ins id='tg6wD'></ins><ul id='tg6wD'></ul><sub id='tg6wD'></sub></form><legend id='tg6wD'></legend><bdo id='tg6wD'><pre id='tg6wD'><center id='tg6wD'></center></pre></bdo></b><th id='tg6wD'></th></span></q></dt></tr></i><div id='tg6wD'><tfoot id='tg6wD'></tfoot><dl id='tg6wD'><fieldset id='tg6wD'></fieldset></dl></div>

        <bdo id='tg6wD'></bdo><ul id='tg6wD'></ul>
    1. <legend id='tg6wD'><style id='tg6wD'><dir id='tg6wD'><q id='tg6wD'></q></dir></style></legend>

      <small id='tg6wD'></small><noframes id='tg6wD'>

      <tfoot id='tg6wD'></tfoot>

        未知类型名称“类";您指的是 'Class'

        时间:2023-05-31
        <tfoot id='d1f0C'></tfoot>

        <small id='d1f0C'></small><noframes id='d1f0C'>

              <tbody id='d1f0C'></tbody>

          1. <legend id='d1f0C'><style id='d1f0C'><dir id='d1f0C'><q id='d1f0C'></q></dir></style></legend>
            <i id='d1f0C'><tr id='d1f0C'><dt id='d1f0C'><q id='d1f0C'><span id='d1f0C'><b id='d1f0C'><form id='d1f0C'><ins id='d1f0C'></ins><ul id='d1f0C'></ul><sub id='d1f0C'></sub></form><legend id='d1f0C'></legend><bdo id='d1f0C'><pre id='d1f0C'><center id='d1f0C'></center></pre></bdo></b><th id='d1f0C'></th></span></q></dt></tr></i><div id='d1f0C'><tfoot id='d1f0C'></tfoot><dl id='d1f0C'><fieldset id='d1f0C'></fieldset></dl></div>

              <bdo id='d1f0C'></bdo><ul id='d1f0C'></ul>
                  本文介绍了未知类型名称“类";您指的是 'Class' 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我正在尝试从 SpeakHere Apple Xcode 项目示例中实现 AQRecorder.h 类,但即使我将我的实现类重命名为 ext.*.mm#import "AQRecorder.h" 的行仍然得到错误 "Unknown type name 'class'; 你的意思是 'Class'?" 等等.在我看来,这意味着它不被识别为 C++ 类.

                  I'm trying to implement AQRecorder.h class from SpeakHere Apple Xcode project example, but even I rename my implementation class to ext. *.mm and put line with #import "AQRecorder.h" still getting error "Unknown type name 'class'; did you mean 'Class'?" and many others. Which according to me means that it is not recognized as C++ class.

                  任何帮助将不胜感激.

                  推荐答案

                  我刚刚遇到了这个问题.我有一个使用 AQRecorder.mm 中的 AQRecorder 类的视图控制器.

                  I've just had this exact problem. I had a view controller using the AQRecorder class from AQRecorder.mm.

                  当我在视图控制器中包含 AQRecorder.h 时,发生了这些错误.在我看来,这是因为我的直接 Objective-c 视图控制器(命名为 .m 文件)包含编译器抛出虚假错误的 C++ 头文件.

                  When I included AQRecorder.h in my view controller these errors occurred. It appeared to me because my straight objective-c view controller (named as a .m file) was including C++ header files the compiler was throwing spurious errors.

                  有两种解决方案.最快的方法是将包括 AQRecorder.h 在内的视图控制器类重命名为 .mm 文件,在我的情况下,将 UIRecorderViewController 从 .m 重命名为 .mm.

                  There are two solutions. The quickest is to rename the view controller class including AQRecorder.h to be a .mm file, in my case UIRecorderViewController from .m to .mm.

                  或者,移动以下包括:

                  #include "CAStreamBasicDescription.h"
                  #include "CAXException.h"
                  

                  从 AQRecorder.h 到 AQRecorder.mm.这意味着直接的 C++ 样式的头文件将不再包含(通过引用)在您的普通 Obj-C 源代码中.

                  Out of AQRecorder.h into AQRecorder.mm. This means that straight C++ style header files will no longer be included (by reference) in your plain Obj-C source.

                  希望能有所帮助,并且有意义.

                  Hope that helps, and makes sense.

                  这篇关于未知类型名称“类";您指的是 'Class' 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:带有框架、图标和图像的自定义 MKAnnotationView 下一篇:iCloud:NSFileManager 的 startDownloadingUbiquitousItemAtURL 的

                  相关文章

                  最新文章

                  <small id='2moSO'></small><noframes id='2moSO'>

                  1. <i id='2moSO'><tr id='2moSO'><dt id='2moSO'><q id='2moSO'><span id='2moSO'><b id='2moSO'><form id='2moSO'><ins id='2moSO'></ins><ul id='2moSO'></ul><sub id='2moSO'></sub></form><legend id='2moSO'></legend><bdo id='2moSO'><pre id='2moSO'><center id='2moSO'></center></pre></bdo></b><th id='2moSO'></th></span></q></dt></tr></i><div id='2moSO'><tfoot id='2moSO'></tfoot><dl id='2moSO'><fieldset id='2moSO'></fieldset></dl></div>
                      <bdo id='2moSO'></bdo><ul id='2moSO'></ul>
                  2. <legend id='2moSO'><style id='2moSO'><dir id='2moSO'><q id='2moSO'></q></dir></style></legend>
                  3. <tfoot id='2moSO'></tfoot>