iphone error: expected '=', ',', ';', 'asm' or '__attribute__' before ' 'foo'

前端 未结 6 1524
忘掉有多难
忘掉有多难 2020-11-28 10:45

I\'m trying to port the speakhere example into another app and I\'m having issues. I copied all the files, and all the frameworks, but for some reason I get a bunch of comp

6条回答
  •  生来不讨喜
    2020-11-28 11:05

    I had a similar scenario to some of the posts above. I'd written a C++ class based off of the examples in the Audio Queue Services documentation, and had this compilation issue in a test project. This post helped a tremendous amount.

    Today, I'm incorporating the C++ class in my project, and got the build error again. In my scenario, I had to also set the type (using the "Get Info" window) to sourcecode.cpp.objcpp for the objective-c class that was calling my C++ class.

提交回复
热议问题