Select to view content in your preferred language

AGSSymbolWithJSON

604
1
08-27-2013 01:42 AM
MatthewLangley
Emerging Contributor
Hi there,

I'm getting a linker error when trying to use the following methods from the SDK, presumably something to do with the external linkage. Everything else I've used from the SDK is working fine so far.

extern AGSRenderer *AGSRendererWithJSON(NSDictionary *json);
extern AGSSymbol *AGSSymbolWithJSON(NSDictionary *json);


The error is:

Ld /Users/davidmcdonald/Library/Developer/Xcode/DerivedData/Tsunami-gluvfmbkavlsqmfmqscutonzrqbi/Build/Products/Debug-iphonesimulator/Tsunami.app/Tsunami normal i386
    cd /Users/davidmcdonald/Development/tsunami
    setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
    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/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/davidmcdonald/Library/Developer/Xcode/DerivedData/Tsunami-gluvfmbkavlsqmfmqscutonzrqbi/Build/Products/Debug-iphonesimulator -F/Users/davidmcdonald/Library/Developer/Xcode/DerivedData/Tsunami-gluvfmbkavlsqmfmqscutonzrqbi/Build/Products/Debug-iphonesimulator -F/Users/davidmcdonald/Library/SDKs/ArcGIS/iOS -F/Users/davidmcdonald/Library/SDKs/ArcGIS/iOS/Samples -F/Users/davidmcdonald/Library/SDKs/ArcGIS/iOS/Samples/MapViewDemo -F/Users/davidmcdonald/Library/SDKs/ArcGIS/iOS/Samples/MapViewDemo/Classes -F/Users/davidmcdonald/Library/SDKs/ArcGIS/iOS/Samples/MapViewDemo/Resources-iPad -F/Users/davidmcdonald/Development/tsunami/Vendor -filelist /Users/davidmcdonald/Library/Developer/Xcode/DerivedData/Tsunami-gluvfmbkavlsqmfmqscutonzrqbi/Build/Intermediates/Tsunami.build/Debug-iphonesimulator/Release.build/Objects-normal/i386/Tsunami.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -framework ArcGIS -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework CoreData -framework CFNetwork -framework SystemConfiguration -lc++ -lz -framework QuartzCore -framework CoreLocation -framework CoreText -framework MediaPlayer -framework MobileCoreServices -framework Security -framework OpenGLES -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/davidmcdonald/Library/Developer/Xcode/DerivedData/Tsunami-gluvfmbkavlsqmfmqscutonzrqbi/Build/Products/Debug-iphonesimulator/Tsunami.app/Tsunami

Undefined symbols for architecture i386:
  "_AGSSymbolWithJSON", referenced from:
      +[TSFeatureType instanceWithDictionary:] in TSFeatureType.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
0 Kudos
1 Reply
MatthewLangley
Emerging Contributor
hmm, should it be using "AGS_EXTERN", instead of "extern"?
0 Kudos