开发者

Compile .mm files in Eclipse CDT (os x)

开发者 https://www.devze.com 2023-02-21 11:25 出处:网络
I have imported an xcode project into Eclipse CDT, which contains myfile.h and myfile.mm pairs. It seems, however, that *.mm files are ignored in the build, as I am getting \"Undefined symbols\" error

I have imported an xcode project into Eclipse CDT, which contains myfile.h and myfile.mm pairs. It seems, however, that *.mm files are ignored in the build, as I am getting "Undefined symbols" error for the classes implemented in the *.mm files.

How can I 开发者_如何转开发tell Eclipse CDT that for a given .h file it should compile .mm file too?

Thanks.


Ah, great question. Unfortunately the CDT currently doesn't have support for Objective-C files. There has been some discussion about that and hopefully we'll see more activity in the coming months. For now you would have to create your own Makefiles or use CMake to build from the xcodeproj file.

0

精彩评论

暂无评论...
验证码 换一张
取 消