fairygui在cocos下面用c++_static编译链接时报错

C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-libc++/include/regex:975: error: undefined reference to 'std::__ndk1::regex_error::regex_error(std::__ndk1::regex_constants::error_type)'
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-libc++/include/regex:0: error: undefined reference to 'typeinfo for std::__ndk1::regex_error'
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-libc++/include/regex:0: error: undefined reference to 'std::__ndk1::regex_error::~regex_error()'
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-libc++/include/regex:975: error: undefined reference to 'std::__ndk1::regex_error::regex_error(std::__ndk1::regex_constants::error_type)'
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-libc++/include/regex:0: error: undefined reference to 'typeinfo for std::__ndk1::regex_error'
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-libc++/include/regex:0: error: undefined reference to 'std::__ndk1::regex_error::~regex_error()'
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-libc++/include/regex:975: error: undefined reference to 'std::__ndk1::regex_error::regex_error(std::__ndk1::regex_constants::error_type)'
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-libc++/include/regex:975: error: undefined reference to 'std::__ndk1::regex_error::regex_error(std::__ndk1::regex_constants::error_type)'
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-libc++/include/regex:0: error: undefined reference to 'typeinfo for std::__ndk1::regex_error'
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-libc++/include/regex:0: error: undefined reference to 'std::__ndk1::regex_error::~regex_error()'
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-
libc++/include/regex:0: error: undefined reference to 'typeinfo for std::__ndk1::regex_error'
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-libc++/include/regex:0: error: undefined reference to 'std::__ndk1::regex_error::~regex_error()'
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-libc++/include/regex:1181: error: undefined reference to 'std::__ndk1::__get_collation_name(char const*)'
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-libc++/include/regex:1181: error: undefined reference to 'std::__ndk1::__get_collation_name(char const*)'
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../sources/cxx-stl/llvm-libc++/include/regex:1242: error: undefined reference to 'std::__ndk1::__get_classname(char const*, bool)'
E:/tmpjunhai/proj.android/monopoly/intermediates/ndkBuild/officalandr/debug/obj/local/armeabi-v7a/libcocos2dxinternal.a(CCNode.o):CCNode.cpp:vtable for std::__ndk1::__match_any_but_newline<char>: error: undefined reference to 'std::__ndk1::__match_any_but_newline<char>::__exec(std::__ndk1::__state<char>&) const'
E:/project/branches/warbusiness/Client/monopoly/1.0.0.0_junhai/frameworks/runtime-src/proj.android/app/jni/../../../../cocos2d-x/cocos/base/ccRandom.cpp:30: error: undefined reference to 'std::__ndk1::random_device::random_device(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)'
E:/project/branches/warbusiness/Client/monopoly/1.0.0.0_junhai/frameworks/runtime-src/proj.android/app/jni/../../../../cocos2d-x/cocos/base/ccRandom.cpp:31: error: undefined reference to 'std::__ndk1::random_device::operator()()'
E:/project/branches/warbusiness/Client/monopoly/1.0.0.0_junhai/frameworks/runtime-src/proj.android/app/jni/../../../../cocos2d-x/cocos/base/ccRandom.cpp:0: error: undefined reference to 'std::__ndk1::random_device::~random_device()'
E:/project/branches/warbusiness/Client/monopoly/1.0.0.0_junhai/frameworks/runtime-src/
proj.android/app/jn
i/../../../../cocos2d-x/cocos/../external/poly2tri/common/shapes.cc:0: error: undefined reference to 'std::__ndk1::cout'
E:/project/branches/warbusiness/Client/monopoly/1.0.0.0_junhai/frameworks/runtime-src/proj.android/app/jni/../../../../cocos2d-x/cocos/../external/poly2tri/common/shapes.cc:0: error: undefined reference to 'std::__ndk1::cout'
E:/project/branches/warbusiness/Client/monopoly/1.0.0.0_junhai/frameworks/runtime-src/proj.android/app/jni/../../../../cocos2d-x/cocos/../external/poly2tri/common/shapes.cc:0: error: undefined reference to 'std::__ndk1::cout'
clang++.exe
已邀请:

谷主

赞同来自:

编译问题自己解决,和UI无关。我也看不懂。

arsenalxj

赞同来自:

你好,请问这个问题解决了吗?我也遇到了这个问题,搞了好几天都没搞定

要回复问题请先登录注册