Can not compile the example in Training

Hello, I am just getting my hands on PowerVR with OGLES1.1 on android.
I have been trying to follow along the training course.
When I get to the part about using PVRShell, I get some erros when I am trying to make the libraries with ndk-build.
this is the error:

SharedLibrary  : libPVRShell.so
D:/PowerVR/SDKPackage_OGLES/TrainingCourse/IntroducingPVRShell/OGLES/build/andro
id/obj/local/armeabi/objs/PVRShell/Shell/OS/AndroidJNI/PVRShellOS.o:D:/PowerVR/S
DKPackage_OGLES/Shell/OS/AndroidJNI/PVRShellOS.cpp:90: multiple definition of `_
_dso_handle’
D:/android-ndk/platforms/android-8/arch-arm/usr/lib/crtbegin_so.o:(.bss+0x0): fi
rst defined here
collect2: ld returned 1 exit status
make: *** [/cygdrive/d/PowerVR/SDKPackage_OGLES/TrainingCourse/IntroducingPVRShe
ll/OGLES/build/android/obj/local/armeabi/libPVRShell.so] エラー 1

dont mind the last few characters, that is just because I am developing under Japanese Windows.

Thank you for any help.





Hi,

 

Removing the extra definition of __dso_handle from /Shell/OS/AndroidJNI/PVRShellOS.cpp (it'll be near the top) should fix this and not cause any side effects. Out of curiosity which version of the Android NDK are you using as I haven't seen this error locally when building the Android SDK?

 

Thanks,

 

Scott

Thanks, Scott.
That solved the problem.
I am using ndk-r6b if that can be of any information to you.
Thanks again.