Use c++filt to see real function name for an undefined symbol

Sometimes when we run an app and some libs aren't in the right place to load, an error message will be shown like below:
undefined symbol: _ZN7QWidget8qwsEventEP8QWSEvent
Below is a good way to translate this "cryptic" message into a clear one.
---
Install c++filt (apt-get install c++filt) very useful with those cryptic error messages ;)
  1. $ echo _ZN7QWidget8qwsEventEP8QWSEvent | c++filt
  2.  
  3. QWidget::qwsEvent(QWSEvent*)

留言

熱門文章