# Can not compile the example in Training

**URL:** <https://forums.imgtec.com/t/can-not-compile-the-example-in-training/1178>\
**Category:** PowerVR Insider\
**Created:** [September 8, 2011, 5:21am UTC](https://forums.imgtec.com/t/can-not-compile-the-example-in-training/1178 "2011-09-08T05:21:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin0228ca](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kevin0228ca](https://forums.imgtec.com/u/kevin0228ca)\
**Post date:** [September 8, 2011, 5:21am UTC](https://forums.imgtec.com/t/can-not-compile-the-example-in-training/1178/1 "2011-09-08T05:21:13Z")

</div>

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&nbsp; : 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.

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/scott/32/256_2.png) [@Scott](https://forums.imgtec.com/u/Scott)\
**Post date:** [September 8, 2011, 7:48am UTC](https://forums.imgtec.com/t/can-not-compile-the-example-in-training/1178/2 "2011-09-08T07:48:02Z")

</div>

Hi,

&nbsp;
  

Removing the extra definition of \_\_dso\_handle from /Shell/OS/AndroidJNI/PVRShellOS.cpp (it'll be near the top)&nbsp;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?
  

&nbsp;
  

Thanks,
  

&nbsp;
  

Scott

---

<div class="post-metadata">

**Author:** ![kevin0228ca](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kevin0228ca](https://forums.imgtec.com/u/kevin0228ca)\
**Post date:** [September 8, 2011, 9:35am UTC](https://forums.imgtec.com/t/can-not-compile-the-example-in-training/1178/3 "2011-09-08T09:35:23Z")

</div>

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