visual c++ - C++ Cross Platform Library (iOS and Android) using math.h -
i using vs2015 rc , cross platform c++ shared library template. under .shared code added simple point class. when created class, in .cpp included pch.h or pre-compiled header available in .android , not .ios. threw error, removed didn't errors , figured include stl items needed. correct route that.
anyway main issue in point.cpp file need use sqrt need include math.h:
#include <math.h>
i have tried including several different ways (cmath...), no matter error myprojectname.ios: error: cannot open source file "math.h". according setting sin project properties .ios use stl llvm c== standard library c++11 support (libc++).
i not sure how add correct include directory ios first time i've written cross platform library , done ios development.
from i've read stl classes available on both platforms. any of great. bad there isn't full tutorial on making simple math library use in android , ios app.
Comments
Post a Comment