# Fail to to compile TMatrixT\<TComplex\>

**URL:** <https://root-forum.cern.ch/t/fail-to-to-compile-tmatrixt-tcomplex/48237>\
**Category:** ROOT\
**Tags:** cling\
**Created:** [January 1, 2022, 2:04am UTC](https://root-forum.cern.ch/t/fail-to-to-compile-tmatrixt-tcomplex/48237 "2022-01-01T02:04:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [January 1, 2022, 3:21pm UTC](https://root-forum.cern.ch/t/fail-to-to-compile-tmatrixt-tcomplex/48237/2 "2022-01-01T15:21:21Z")

</div>

Hello,

I believe this is a duplicate of:

> [@Fail to compile TMatrixT\<TComplex\>](https://root-forum.cern.ch/t/fail-to-compile-tmatrixt-tcomplex/48232):
>
> #include \<TMatrixT.h\> #include \<TComplex.h\> typedef TMatrixT\<TComplex\> TMatC; int main() { TMatC mat; return 0; } then complie: : g++ $(root-config --cflags) $(root-config --libs) test.cxx -o test got lots of undefined symbols during link. any solutions ? thank you. \_ROOT Version: 6.24/06 \_Platform: ubuntu 20.40 LTS \_Compiler: gcc 9.3.0

Please check the answer you got in that other post.

---

_[View the full topic](https://root-forum.cern.ch/t/fail-to-to-compile-tmatrixt-tcomplex/48237)._
