Xcode目标C ++-避免制作.hh文件? [英] Xcode objective C++ -- avoid making .hh files?

查看:77
本文介绍了Xcode目标C ++-避免制作.hh文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要使带有目标C和C ++对象的头文件都能工作,我必须将它们从.h重命名为.hh.但是我的同事使用.h没有任何问题.我们俩都不知道为什么.

To get header files with both Objective C and C++ objects to work, I have to rename them from .h to .hh. But my colleague uses .h with no problems. Neither of us understands why.

有人可以解释吗?

推荐答案

我猜您同事的项目设置中编译源为设置为Objective-C ++,而您没有.

I guess your colleague's project settings have the Compile Sources As set to Objective-C++ and you don't.

这篇关于Xcode目标C ++-避免制作.hh文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆