Error: Cannot use typeid with -fno-rtti

前端 未结 2 1769
梦谈多话
梦谈多话 2021-01-18 01:06

I´m getting this \"Cannot use typeid with -fno-rtti\" when I´m trying to compile my project, I´m using an opencv framework. I googled the problem but, it seems the errors I

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-18 01:51

    It's telling you the error right in the message: if you use the no-rtti flag on the compiler, then typeid is not going to be available. Just enable RTTI; it's part of C++ after all.

提交回复
热议问题