美文网首页音视频知识
xcode c++混编出现 could not build mo

xcode c++混编出现 could not build mo

作者: 过客又见过客 | 来源:发表于2016-08-17 19:20 被阅读95次

    xcode 编译时会默认将.pch中的头文件,默认加到工程中的文件中,但让包括C++文件,因而会出错。所以应该如下方式添加:

    ifdef OBJC

    import <UIKit/UIKit.h>

    import <Foundation/Foundation.h>

    endif

    import "ddddd.h"

    可加群一起交流共同学习:801216530。

    相关文章

      网友评论

        本文标题:xcode c++混编出现 could not build mo

        本文链接:https://www.haomeiwen.com/subject/banmsttx.html