# Issues linking with libtorch (C++11 ABI?)

**URL:** <https://discuss.pytorch.org/t/issues-linking-with-libtorch-c-11-abi/29510>\
**Category:** Uncategorized\
**Created:** [November 13, 2018, 4:09pm UTC](https://discuss.pytorch.org/t/issues-linking-with-libtorch-c-11-abi/29510 "2018-11-13T16:09:41Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![smth](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/smth/32/13_2.png) [@smth](https://discuss.pytorch.org/u/smth)\
**Post date:** [November 16, 2018, 9:44pm UTC](https://discuss.pytorch.org/t/issues-linking-with-libtorch-c-11-abi/29510/7 "2018-11-16T21:44:36Z")

</div>

we have that flag set because we build with gcc 4.9.x, which only has the old ABI.  
In GCC 5.1, the ABI for std::string was changed, and binaries compiling with gcc \>= 5.1 are not ABI-compatible with binaries build with gcc \< 5.1 (like pytorch) unless you set that flag.

---

_[View the full topic](https://discuss.pytorch.org/t/issues-linking-with-libtorch-c-11-abi/29510)._
