Linker fails when building for android (Windows build and linking doesn’t have any problem).
Not even warnings generated during compilation.
No idea what is actually wrong since rest of c++11 seems to work correctly.
LogPlayLevel:Display: UnrealBuildTool: Compiling with NDK API 'android-19'
LogPlayLevel:Display: UnrealBuildTool: Performing 1 actions (max 4 parallel jobs)
LogPlayLevel:Display: UnrealBuildTool: [1/1] clang++.exe Summer2014-armv7.so
LogPlayLevel:Display: UnrealBuildTool: W:/Unreal Projects/Summer2014/Source/Summer2014/Util/Timer.cpp:40: error: undefined reference to 'std::chrono::_V2::system_clock::now()'
LogPlayLevel:Display: UnrealBuildTool: W:/Unreal Projects/Summer2014/Source/Summer2014/Util/Timer.cpp:40: error: undefined reference to 'std::chrono::_V2::system_clock::now()'
LogPlayLevel:Display: UnrealBuildTool: W:/Unreal Projects/Summer2014/Source/Summer2014/Util/Timer.cpp:40: error: undefined reference to 'std::chrono::_V2::system_clock::now()'
LogPlayLevel:Display: UnrealBuildTool: W:/Unreal Projects/Summer2014/Source/Summer2014/Util/Timer.cpp:49: error: undefined reference to 'std::chrono::_V2::system_clock::now()'
LogPlayLevel:Display: UnrealBuildTool: clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
We required custom timer since built-in is unavailable outside UObjects and some of our code doesn’t have any need for UObject but still needs timer.
Using Unreal Engine 4.2 and Tegra Dev Pack is installed.