0

Xcode で次のエラーが発生しました。オンラインでしばらく調べた後、解決策が見つかりませんでした。ジェネリックを使用するオブジェクト Grid を作成していますが、このエラーが発生せずに開始できません。どんな助けや洞察も大歓迎です。

Ld "/Users/IQ/Library/Developer/Xcode/DerivedData/IQ_Maps-gefraspxyhtuudxovbglequskej/Build/Products/Debug-iphonesimulator/IQ Maps.app/IQ Maps" 通常の i386 cd "/Users/IQ/Documents/IQ Labs/IQ Maps" setenv IPHONEOS_DEPLOYMENT_TARGET 6.0 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin :/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/プラットフォーム/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/IQ/Library/Developer/Xcode/DerivedData/IQ_Maps-ghefraspxyhtuudxovbglequskej/Build/Products/Debug-iphonesimulator -F/Users/IQ/Library/Developer/Xcode/DerivedData/IQ_Maps-ghefraspxyhtuudxovbglequskej/Build/Products/ Debug-iphonesimulator "-F/Users/IQ/Documents/IQ Labs/IQ Maps/../../../Desktop" "-F/Users/IQ/Documents/IQ Labs/IQ Maps/.." " -F/Users/IQ/Documents/IQ Labs/IQ Maps/../../Desktop" "-F/Users/IQ/Documents/IQ Labs/IQ Maps" -filelist "/Users/IQ/Library/Developer /Xcode/DerivedData/IQ_Maps-ghefraspxyhtuudxovbglequskej/Build/Intermediates/IQ Maps.build/Debug-iphonesimulator/IQ Maps.build/Objects-normal/i386/IQ Maps.LinkFileList" -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc - fobjc-link-runtime -Xlinker -no_implicit_dylibs -stdlib=libc++ -mios-simulator-version-min=6.0 -framework opencv2 -framework AssetsLibrary -framework QuartzCore -framework CoreMedia -framework ImageIO -framework CoreVideo -framework CoreLocation -framework AVFoundation -framework CoreMotion -framework UIKit -framework Foundation -framework CoreGraphics -o "/Users/IQ/Library/Developer/Xcode /DerivedData/IQ_Maps-gefraspxyhtuudxovbglequskej/Build/Products/Debug-iphonesimulator/IQ Maps.app/IQ Maps"

ld: 警告: オプション '-F/Users/IQ/Documents/IQ Labs/IQ Maps/../../Desktop' のディレクトリが見つかりません アーキテクチャ i386 の未定義シンボル: "Grid::Grid(int, int)" 、参照元: Tracker::Tracker() in Tracker.o ld: アーキテクチャ i386 のシンボルが見つかりません。clang: エラー: リンカー コマンドが終了コード 1 で失敗しました (呼び出しを確認するには -v を使用します)

4

2 に答える 2

0

テンプレートを使用すると、「未解決の外部シンボル」エラーが発生するのはなぜですか?

これは重複していて、私も気づきませんでした。申し訳ありません。ご協力いただきありがとうございますが、ジェネリック/テンプレート クラスの使用方法に問題がありました。

于 2013-05-27T18:02:27.887 に答える