@import vs #import in TAAE2

Is there a reason you've used @import for Foundation and AudioTool box? They don't work with Objective C++ which my headers cross over into, causing the build to fail. I've switched them to #import instead and it works fine.

Unnesting my headers is a nightmare; if there's no reason for the @import than can they be switched to @import?


  • Obviously, that was supposed to read:

    "Can we switch @import to #import?"

  • Ah, I didn't realise that messes with C++ - I was using "@import" as it seems to be encouraged more these days; presumably because it automates some framework selections, although I don't really know for sure.

    Anyway, yeah, that's fine, we can do that.

  • Thanks Michael!

Sign In or Register to comment.