搜索
您的当前位置:首页正文

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

来源:哗拓教育

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

ifdef OBJC

import <UIKit/UIKit.h>

import <Foundation/Foundation.h>

endif

import "ddddd.h"

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

Top