How to compile specific files in objective-c++ and the rest of the project in objective-c

前端 未结 3 644
醉酒成梦
醉酒成梦 2020-12-30 03:09

I\'m currently busy on a project where I need to use an external accessory to read Mifare 1k tags.

The accessory was provided with an SDK, written in (Objective ?)C+

3条回答
  •  旧巷少年郎
    2020-12-30 03:50

    Try renaming the files where you are including the library headers to myClass.h for interface and myClass.mm for implementation files. This forces the files to be compiled as objective-c++.

提交回复
热议问题