# PVRTexTool 2016 R2 Visual Studio 2015 unresolved CPVRTString::npos

**URL:** https://forums.imgtec.com/t/pvrtextool-2016-r2-visual-studio-2015-unresolved-cpvrtstring-npos/2519
**Category:** PowerVR Insider
**Tags:** pvrtextool
**Created:** [February 10, 2017, 5:55am UTC](https://forums.imgtec.com/t/pvrtextool-2016-r2-visual-studio-2015-unresolved-cpvrtstring-npos/2519 "2017-02-10T05:55:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pixelblender](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@pixelblender](https://forums.imgtec.com/u/pixelblender)
#### Post date: [February 10, 2017, 5:55am UTC](https://forums.imgtec.com/t/pvrtextool-2016-r2-visual-studio-2015-unresolved-cpvrtstring-npos/2519/1 "2017-02-10T05:55:59Z")

</div>

Hi,

In my project I tried to link to PVRTexLib.lib and it can’t find symbol to CPVRTString::npos:

[scode lang="{language}"]error LNK2001: unresolved external symbol “public: static unsigned \_\_int64 const CPVRTString::npos”[/scode]

The project uses runtime library /MD (Multi-threaded dll) and /MDd (Multi-threaded debug dll).

Searching the forum some posts mention CPVRTString.cpp but I can’t find the file in the PowerVR Tools & SDK installation directory.

Please help.

---

<div class="post-metadata">

### Author: ![pixelblender](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@pixelblender](https://forums.imgtec.com/u/pixelblender)
#### Post date: [February 10, 2017, 6:22am UTC](https://forums.imgtec.com/t/pvrtextool-2016-r2-visual-studio-2015-unresolved-cpvrtstring-npos/2519/2 "2017-02-10T06:22:47Z")

</div>

My bad. Forgot to define \_WINDLL\_IMPORT before includes.

---

<div class="post-metadata">

### Author: ![yang](https://avatars.discourse-cdn.com/v4/letter/y/77aa72/32.png) [@yang](https://forums.imgtec.com/u/yang)
#### Post date: [March 22, 2018, 5:59am UTC](https://forums.imgtec.com/t/pvrtextool-2016-r2-visual-studio-2015-unresolved-cpvrtstring-npos/2519/3 "2018-03-22T05:59:10Z")

</div>

Hi,  
I encountered the same problem.But it not done when i define \_WINDLL\_IMPORT before includes.  
Please help.

---

<div class="post-metadata">

### Author: ![yang](https://avatars.discourse-cdn.com/v4/letter/y/77aa72/32.png) [@yang](https://forums.imgtec.com/u/yang)
#### Post date: [March 23, 2018, 2:32am UTC](https://forums.imgtec.com/t/pvrtextool-2016-r2-visual-studio-2015-unresolved-cpvrtstring-npos/2519/4 "2018-03-23T02:32:42Z")

</div>

How you add the \_WINDLL\_IMPORT?  
Can you help me?  
Thanks
