# pvrtexlib static lib win64 linker error

**URL:** <https://forums.imgtec.com/t/pvrtexlib-static-lib-win64-linker-error/1220>\
**Category:** PowerVR Insider\
**Created:** [October 27, 2011, 11:54am UTC](https://forums.imgtec.com/t/pvrtexlib-static-lib-win64-linker-error/1220 "2011-10-27T11:54:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![esenthel-2](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@esenthel-2](https://forums.imgtec.com/u/esenthel-2)\
**Post date:** [October 27, 2011, 11:54am UTC](https://forums.imgtec.com/t/pvrtexlib-static-lib-win64-linker-error/1220/1 "2011-10-27T11:54:27Z")

</div>

Hi,
&nbsp;

When using the newly provided static libs from your sdk for pvrtexlib I get linker errors for Windows 64-bit platform:

&nbsp;

2\>engine64.lib(pvr\_utils.obj) : error LNK2019: unresolved external symbol pvrtc\_get\_version referenced in function "public: void \_\_cdecl pvrtexlib::PVRTextureUtilities::getPVRTCVersion(unsigned int &,unsigned int &,unsigned int &,unsigned int &)" (?getPVRTCVersion@PVRTextureUtilities@pvrtexlib@@QEAAXAEAI000@Z)

2\>engine64.lib(pvr\_io.obj) : error LNK2001: unresolved external symbol pvrtc\_get\_version

&nbsp;

When compiling 32-bit all works fine!  

&nbsp;

&nbsp;

Edit: on Win64 I need to manually add following line to my project to make compiling work:

extern "C" {void pvrtc\_get\_version(Ptr,Ptr,Ptr,Ptr) {}}

  
Esenthel2011-10-27 14:25:38

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forums.imgtec.com/u/tobias)\
**Post date:** [October 27, 2011, 1:44pm UTC](https://forums.imgtec.com/t/pvrtexlib-static-lib-win64-linker-error/1220/2 "2011-10-27T13:44:27Z")

</div>

Hi Esenthel,  
  
Thanks for reporting this! This is an odd bug - not even sure why it’s complaining as it’s an internal function - though perhaps significantly it is external in our PVRTC library. I’ve marked it into our internal bug tracker (BRN34818) and will be looking into it shortly.  
  
Thanks,  
  
Tobias

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forums.imgtec.com/u/tobias)\
**Post date:** [November 7, 2011, 9:03am UTC](https://forums.imgtec.com/t/pvrtexlib-static-lib-win64-linker-error/1220/3 "2011-11-07T09:03:38Z")

</div>

Hi Esenthel,  
  
I double checked the linking for PVRTexLib and all seems to be working fine. However on reviewing your post I am a little confused with your use of the library - for example it’s stating that pvr\_utils.obj is a member of “engine64.lib” …? How are you linking to PVRTexLib? Have you renamed the library or are you using individual objects from it? If not, it could be a problem with your copy of Visual Studio. Have you updated to service pack 1 for Visual Studio 2008?  
  
Thanks,  
  
Tobias

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forums.imgtec.com/u/tobias)\
**Post date:** [November 7, 2011, 4:06pm UTC](https://forums.imgtec.com/t/pvrtexlib-static-lib-win64-linker-error/1220/4 "2011-11-07T16:06:33Z")

</div>

Hi Esenthel,  
  
Ok the bug finally showed up completely at random in one of our builds, I’m not sure exactly what was causing it, it looks like a weird compiler glitch that shows up from time to time. I’ve removed the dependency from the library as it’s not even an external function and I’ll try to get a new version out asap.  
  
Thanks,  
  
Tobias
