LINUX.ORG.RU

Спецам по wxWidgets, почему не может найти метод?


0

1

Приветствую, в коде создаю wxHtmlWindow, код компилится без ошибок, однако на этапе линковки начинается ругань:

CMakeFiles/lq.dir/src/LFrame.cpp.o: In function `wxHtmlWindowMouseHelper::~wxHtmlWindowMouseHelper()':
LFrame.cpp:(.text._ZN23wxHtmlWindowMouseHelperD2Ev[_ZN23wxHtmlWindowMouseHelperD5Ev]+0xb): undefined reference to `vtable for wxHtmlWindowMouseHelper'
CMakeFiles/lq.dir/src/LFrame.cpp.o: In function `wxHtmlWindow::wxHtmlWindow(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&)':
LFrame.cpp:(.text._ZN12wxHtmlWindowC2EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString[_ZN12wxHtmlWindowC5EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString]+0x3b): undefined reference to `wxHtmlWindowMouseHelper::wxHtmlWindowMouseHelper(wxHtmlWindowInterface*)'
LFrame.cpp:(.text._ZN12wxHtmlWindowC2EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString[_ZN12wxHtmlWindowC5EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString]+0x44): undefined reference to `vtable for wxHtmlWindow'
LFrame.cpp:(.text._ZN12wxHtmlWindowC2EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString[_ZN12wxHtmlWindowC5EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString]+0x51): undefined reference to `vtable for wxHtmlWindow'
LFrame.cpp:(.text._ZN12wxHtmlWindowC2EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString[_ZN12wxHtmlWindowC5EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString]+0x5e): undefined reference to `vtable for wxHtmlWindow'
LFrame.cpp:(.text._ZN12wxHtmlWindowC2EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString[_ZN12wxHtmlWindowC5EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString]+0x6b): undefined reference to `vtable for wxHtmlWindow'
LFrame.cpp:(.text._ZN12wxHtmlWindowC2EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString[_ZN12wxHtmlWindowC5EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString]+0xe6): undefined reference to `wxHtmlWindow::Init()'
LqucsFrame.cpp:(.text._ZN12wxHtmlWindowC2EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString[_ZN12wxHtmlWindowC5EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString]+0x11b): undefined reference to `wxHtmlWindow::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&)'
collect2: ошибка: выполнение ld завершилось с кодом возврата 1

Сама либа wxHTML вроде как прикручена:

$ wx-config --libs
-pthread -Wl,-z,relro   -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 

Как собрать, чего ему не хватает? Может версия wx не та, попробовать собрать посвежее?

★★★★★

Как команда сборки выглядит?

elfy
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.