在Metaio云插件viewcontroller中找不到矢量文件

时间:2014-10-01 07:41:43

标签: ios objective-c xcode objective-c++ metaio

我已经在我的IOS应用程序中安装了Metaio SDK,目前我在MetaioCloudPluginViewController.h中收到错误,找不到矢量文件,我试图从.m或.mm更改类型我在哪里使用这个sdk文件,但不幸的是,如果我这样做,那么新的错误会弹出,例如“指针和整数之间的比较”。我在构建设置中更改了一些内容,但结果仍然相同。

这是我在陈述的viewcontroller中包含的文件。

#include <vector>

以下代码用于viewcontroller.m文件之一。

- (IBAction)onStartPushed:(id)sender {
        // Create a new ARViewController. All channel details and properties are defined in that class.
        // see ARViewController.mm for the implementation
        ARViewController* metaioCloudPlugin = [[ARViewController alloc] init];

        // present the viewcontroller
        [self presentViewController:metaioCloudPlugin animated:YES completion:nil];

        // release it, because it's retained as modalViewController
        //[metaioCloudPlugin release];
}

感谢您的时间。

1 个答案:

答案 0 :(得分:0)

您需要将viewcontroller.m重命名为viewcontroller.mm文件,因为有一个C ++代码。

希望这有帮助。

相关问题