@yorkyous 写道:
使用的引擎版本为3.4,xcode中有关rapidjson的5个警告看着很不舒服,强迫症需要大神帮忙处理这些警告,警告信息如下:
ld: warning: direct access in function 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::operator[](char const*)' from file '/Users/yorkyous/Library/Developer/Xcode/DerivedData/Frame-hhacmlegjkytleeyrbjgdryaevpt/Build/Intermediates/Frame.build/Debug-iphonesimulator/Frame iOS.build/Objects-normal/x86_64/SimpleConfigParser.o' to global weak symbol 'guard variable for rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::operator[](char const*)::NullValue' from file '/Users/yorkyous/Project/cocos2d-x-3.4/prebuilt/ios/libsimulator iOS.a(ConfigParser.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::operator[](char const*)' from file '/Users/yorkyous/Library/Developer/Xcode/DerivedData/Frame-hhacmlegjkytleeyrbjgdryaevpt/Build/Intermediates/Frame.build/Debug-iphonesimulator/Frame iOS.build/Objects-normal/x86_64/SimpleConfigParser.o' to global weak symbol 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::operator[](char const*)::NullValue' from file '/Users/yorkyous/Project/cocos2d-x-3.4/prebuilt/ios/libsimulator iOS.a(ConsoleCommand.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::operator[](char const*)' from file '/Users/yorkyous/Library/Developer/Xcode/DerivedData/Frame-hhacmlegjkytleeyrbjgdryaevpt/Build/Intermediates/Frame.build/Debug-iphonesimulator/Frame iOS.build/Objects-normal/x86_64/SimpleConfigParser.o' to global weak symbol 'guard variable for rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::operator[](char const*)::NullValue' from file '/Users/yorkyous/Project/cocos2d-x-3.4/prebuilt/ios/libsimulator iOS.a(ConfigParser.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::operator[](char const*)' from file '/Users/yorkyous/Library/Developer/Xcode/DerivedData/Frame-hhacmlegjkytleeyrbjgdryaevpt/Build/Intermediates/Frame.build/Debug-iphonesimulator/Frame iOS.build/Objects-normal/x86_64/SimpleConfigParser.o' to global weak symbol 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::operator[](char const*)::NullValue' from file '/Users/yorkyous/Project/cocos2d-x-3.4/prebuilt/ios/libsimulator iOS.a(ConsoleCommand.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::operator[](char const*)' from file '/Users/yorkyous/Library/Developer/Xcode/DerivedData/Frame-hhacmlegjkytleeyrbjgdryaevpt/Build/Intermediates/Frame.build/Debug-iphonesimulator/Frame iOS.build/Objects-normal/x86_64/SimpleConfigParser.o' to global weak symbol 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::operator[](char const*)::NullValue' from file '/Users/yorkyous/Project/cocos2d-x-3.4/prebuilt/ios/libsimulator iOS.a(ConsoleCommand.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::operator[](char const*)' from file '/Users/yorkyous/Library/Developer/Xcode/DerivedData/Frame-hhacmlegjkytleeyrbjgdryaevpt/Build/Intermediates/Frame.build/Debug-iphonesimulator/Frame iOS.build/Objects-normal/x86_64/SimpleConfigParser.o' to global weak symbol 'guard variable for rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::operator[](char const*)::NullValue' from file '/Users/yorkyous/Project/cocos2d-x-3.4/prebuilt/ios/libsimulator iOS.a(ConfigParser.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::operator[](char const*)' from file '/Users/yorkyous/Library/Developer/Xcode/DerivedData/Frame-hhacmlegjkytleeyrbjgdryaevpt/Build/Intermediates/Frame.build/Debug-iphonesimulator/Frame iOS.build/Objects-normal/x86_64/SimpleConfigParser.o' to global weak symbol 'guard variable for rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::operator[](char const*)::NullValue' from file '/Users/yorkyous/Project/cocos2d-x-3.4/prebuilt/ios/libsimulator iOS.a(ConfigParser.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'cocos2d::initWithAction(cocos2d::FiniteTimeAction*, unsigned int)' from file '/Users/yorkyous/Project/cocos2d-x-3.4/prebuilt/ios/libcocos2d iOS.a(CCActionInterval.o)' to global weak symbol 'typeinfo for cocos2d::FiniteTimeAction' from file '/Users/yorkyous/Library/Developer/Xcode/DerivedData/Frame-hhacmlegjkytleeyrbjgdryaevpt/Build/Intermediates/Frame.build/Debug-iphonesimulator/Frame iOS.build/Objects-normal/x86_64/CallFuncNV.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'bool array_to_vector_t_deprecated(cocos2d::_Array&, cocos2d::Vector&)' from file '/Users/yorkyous/Project/cocos2d-x-3.4/prebuilt/ios/libluacocos2d iOS.a(luacocos2dx_deprecated.o)' to global weak symbol 'typeinfo for cocos2d::FiniteTimeAction' from file '/Users/yorkyous/Library/Developer/Xcode/DerivedData/Frame-hhacmlegjkytleeyrbjgdryaevpt/Build/Intermediates/Frame.build/Debug-iphonesimulator/Frame iOS.build/Objects-normal/x86_64/CallFuncNV.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'lua_register_cocos2dx_FiniteTimeAction(lua_State*)' from file '/Users/yorkyous/Project/cocos2d-x-3.4/prebuilt/ios/libluacocos2d iOS.a(lua_cocos2dx_auto.o)' to global weak symbol 'typeinfo name for cocos2d::FiniteTimeAction' from file '/Users/yorkyous/Library/Developer/Xcode/DerivedData/Frame-hhacmlegjkytleeyrbjgdryaevpt/Build/Intermediates/Frame.build/Debug-iphonesimulator/Frame iOS.build/Objects-normal/x86_64/CallFuncNV.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
帖子: 2
参与者: 1