2013-01-23 26 views
0

嘗試在OSX 10.8上使用Xcode 4.5.2編譯trunk @ 711時出現編譯錯誤。CHDataStructures CHMutableDictionary HIDDEN void createCollectableCFMutableDictionary

CHMutableDictionary.m:54

Conflicting types for 'createCollectableCFMutableDictionary' 

看着CHMutableDictionary.h:14

HIDDEN void createCollectableCFMutableDictionary(CFMutableDictionaryRef* dictionary, NSUInteger initialCapacity); 

宏隱藏在這裏討論:CHDataStructures.framework won't compile for iOS in Xcode 4但瞭解iOS。

我猜一個補丁是需要得到這個在OSX上編譯以及?

回答

0

HIDDEN屬性不影響這裏的編譯,不像其他問題。這是抱怨,因爲.m文件在第一個參數上有一個__strong修飾符,但它從.h文件中丟失。您可以通過將標題中的聲明更改爲:

HIDDEN void createCollectableCFMutableDictionary(__strong CFMutableDictionaryRef* dictionary, NSUInteger initialCapacity);