How to mix Qt, C++ and Obj-C/Cocoa

后端 未结 1 545
梦如初夏
梦如初夏 2020-12-16 00:44

I have a pure C++/Qt project on a Mac, but I now find that I need to call a few methods only available in the Cocoa API. Following instructions listed here:

http://e

1条回答
  •  醉梦人生
    2020-12-16 01:01

    It's compiling your .m file as Objective-C. You want it to be a .mm file for Objective-C++.

    0 讨论(0)
提交回复
热议问题