Hey,
Thanks for the info
i tried again what you were saying
added to cloudreco.cpp - #include <vector>
added to application.mk - APP_STL := stlport_static
and got lots of ndk lib errors
really frustrating.. if u can help some how it will be much appreciated
thanks
the errors:
$ ndk-build
Compile++ arm : CloudReco <= Transition3Dto2D.cpp
Compile++ arm : CloudReco <= CloudReco.cpp
In file included from C:/Android/android-ndk-r8b-windows/android-ndk-r8b/sources /cxx-stl/stlport/stlport/stl/_algobase.h:46:0,
from C:/Android/android-ndk-r8b-windows/android-ndk-r8b/sources /cxx-stl/stlport/stlport/vector:33,
from C:/Work/EyeducationAndroid/VstoryBase_3.0/jni/CloudReco.cp p:17:
C:/Android/android-ndk-r8b-windows/android-ndk-r8b/sources/cxx-stl/stlport/stlpo rt/stl/_cstdlib.h: In function 'long int abs(long int)':
C:/Android/android-ndk-r8b-windows/android-ndk-r8b/sources/cxx-stl/stlport/stlpo rt/stl/_cstdlib.h:131:25: error: declaration of C function 'long int abs(long in t)' conflicts with
C:/Android/android-ndk-r8b-windows/android-ndk-r8b/platforms/android-8/arch-arm/ usr/include/../include/stdlib.h:83:23: error: previous declaration 'int abs(int) ' here
In file included from C:/Android/android-ndk-r8b-windows/android-ndk-r8b/sources /cxx-stl/stlport/stlport/stl/_algobase.h:46:0,
from C:/Android/android-ndk-r8b-windows/android-ndk-r8b/sources /cxx-stl/stlport/stlport/vector:33,
from C:/Work/EyeducationAndroid/VstoryBase_3.0/jni/CloudReco.cp p:17:
C:/Android/android-ndk-r8b-windows/android-ndk-r8b/sources/cxx-stl/stlport/stlpo rt/stl/_cstdlib.h: In function 'ldiv_t div(long int, long int)':
C:/Android/android-ndk-r8b-windows/android-ndk-r8b/sources/cxx-stl/stlport/stlpo rt/stl/_cstdlib.h:137:56: error: declaration of C function 'ldiv_t div(long int, long int)' conflicts with
C:/Android/android-ndk-r8b-windows/android-ndk-r8b/platforms/android-8/arch-arm/ usr/include/../include/stdlib.h:150:16: error: previous declaration 'div_t div(i nt, int)' here
C:/Android/android-ndk-r8b-windows/android-ndk-r8b/sources/cxx-stl/stlport/stlpo rt/stl/_cstdlib.h: In function 'long long int abs(long long int)':
C:/Android/android-ndk-r8b-windows/android-ndk-r8b/sources/cxx-stl/stlport/stlpo rt/stl/_cstdlib.h:151:48: error: declaration of C function 'long long int abs(lo ng long int)' conflicts with
C:/Android/android-ndk-r8b-windows/android-ndk-r8b/sources/cxx-stl/stlport/stlpo rt/stl/_cstdlib.h:131:13: error: previous declaration 'long int abs(long int)' h ere
Normally yes.
Have you added to application.mk the following line:
APP_STL := stlport_static
?