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

前端 未结 3 642
醉酒成梦
醉酒成梦 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条回答
  •  -上瘾入骨i
    2020-12-30 03:32

    I have resolved this problem:

    1. You should set "According to file type" to "Complile Sources As",
    2. Set "-ObjC++" to the "Other Linker Flags"
    3. The last,you should modify the files's suffix to .mm that reference the library method

提交回复
热议问题