Visual Studio 2017 Android NDK math.h

后端 未结 2 1153
梦如初夏
梦如初夏 2020-12-21 12:19

I\'m trying to port some OpenGL ES code from windows to Android using the Android NDK. I\'m using Visual Studio 2017 and C++. What I did so far, I created a cross platform g

相关标签:
2条回答
  • 2020-12-21 13:01

    I have not found a fix to the questions, but creating a project from the native android template allows you to use cmath without error, but you do need to add m; in linker input.

    0 讨论(0)
  • 2020-12-21 13:05

    If you #include <cmath> The methods are in std namespace so you should use std::acos etc.

    0 讨论(0)
提交回复
热议问题