私はWikitude SDKで作業していますが、Wikitudeのサンプルフォルダでサポートされているファイルを追加しています。ObjCクラスを使用しているときにエラーが発生する.cppファイル(unqualified-id @class)
In file included from /Volumes/DATA/Dhanesh/Projects/experiments/AR/ARWikiDemo/ARWikiDemo/WikiSDK/Controller/Examples/Categories/PluginsAPI/CustomCamera/YUVFrameInputPlugin.cpp:11: In file included from /Volumes/DATA/Dhanesh/Projects/experiments/AR/ARWikiDemo/ARWikiDemo/WikiSDK/Controller/Examples/Categories/PluginsAPI/CustomCamera/WTDeviceCamera.h:9: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:492:1: error: expected unqualified-id @class NSString, Protocol;
いただきました!ここで間違って取得しますが、その氏は述べていないこと
すべてNSString
、NSObject
、NSLog
は修飾されていない-ID @class私は、すべての関連するリンカフラグととヘッダ&ライブラリを設定している
そのためのserchパスが、まだエラーを超えています。
ここで何が起こっているの?参照用
エラー画面ショット:事前に
ありがとう!
ファイルにObj-Cクラスを使用しますか?もしそうなら、 '.mm'で終わるファイルをObj-C++コンパイラを使うように変更してください。 – Mats
はい私はいくつかのクラスwith.cppを持っていますが、奇妙なことは、同じ.cpp extがWikitudeデモで作業していますが、私は新しいデモを作成したいと思っています。 – CodeChanger