# PVRTexTool libPVRTexLib.dylib XCode 10.1 clang linker error

**URL:** <https://forums.imgtec.com/t/pvrtextool-libpvrtexlib-dylib-xcode-10-1-clang-linker-error/2902>\
**Category:** PowerVR Insider\
**Tags:** pvrtextool\
**Created:** [March 23, 2019, 7:08am UTC](https://forums.imgtec.com/t/pvrtextool-libpvrtexlib-dylib-xcode-10-1-clang-linker-error/2902 "2019-03-23T07:08:11Z")\
**Posts on this page:** 2\
**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:** [March 23, 2019, 7:08am UTC](https://forums.imgtec.com/t/pvrtextool-libpvrtexlib-dylib-xcode-10-1-clang-linker-error/2902/1 "2019-03-23T07:08:12Z")

</div>

On MacOS Mojave 10.14.2 with XCode 10.1 I can’t compile our custom tool linked with libPVRTexLib.dylib. Previously it works on our old MacOS El Capitan with XCode 8 (which I no longer have access to it).

It was an `Undefined symbols for architecture x86_64` linker error, some of it to basic lib like `std::array`. The XCode project was compiled with `--std=c++17`

Could it be that the `dylib` was compiled against `libstdc++`? Afaik XCode 10 no longer ships with it.

```auto
Undefined symbols for architecture x86_64:
  "pvrtexture::CPVRTexture::CPVRTexture(pvrtexture::CPVRTextureHeader const&, void const*)", referenced from:
...
      ___cxx_global_var_init in testpvr.o
      ___cxx_global_var_init.1 in testpvr.o
      ___cxx_global_var_init.2 in testpvr.o

```

Best regards,

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [March 25, 2019, 4:52pm UTC](https://forums.imgtec.com/t/pvrtextool-libpvrtexlib-dylib-xcode-10-1-clang-linker-error/2902/2 "2019-03-25T16:52:52Z")

</div>

Hi,

Thanks for reporting this problem. We are now looking into replicating it and, hopefully, fixing it.

Thanks.

Carlos.
