Skip to content

"undefined reference to `vtable for" #7

Description

Hello,

I have several problems when compiling:

> [ 97%] Linking CXX executable Worktips
> CMakeFiles/Worktips.dir/src/Gui/Mining/PoolTreeView.cpp.o: In function `WalletGui::PoolTreeView::PoolTreeView(QWidget*)':
> PoolTreeView.cpp:(.text+0x2b): undefined reference to `vtable for WalletGui::PoolTreeView'
> CMakeFiles/Worktips.dir/src/Gui/Mining/PoolTreeView.cpp.o: In function `WalletGui::PoolTreeView::~PoolTreeView()':
> PoolTreeView.cpp:(.text+0x1f3): undefined reference to `vtable for WalletGui::PoolTreeView'
> CMakeFiles/Worktips.dir/src/Gui/Mining/PoolTreeView.cpp.o: In function `non-virtual thunk to WalletGui::PoolTreeView::~PoolTreeView()':
> PoolTreeView.cpp:(.text+0x223): undefined reference to `vtable for WalletGui::PoolTreeView'
> CMakeFiles/Worktips.dir/src/Application/AddressBookManager.cpp.o: In function `WalletGui::AddressBookManager::~AddressBookManager()':
> AddressBookManager.cpp:(.text+0x163): undefined reference to `vtable for WalletGui::AddressBookManager'
> CMakeFiles/Worktips.dir/src/Application/AddressBookManager.cpp.o: In function `WalletGui::AddressBookManager::walletClosed()':
> AddressBookManager.cpp:(.text+0x2801): undefined reference to `WalletGui::AddressBookManager::addressBookClosedSignal()'
> AddressBookManager.cpp:(.text+0x2809): undefined reference to `WalletGui::AddressBookManager::donationManagerClosedSignal()'
> CMakeFiles/Worktips.dir/src/Application/AddressBookManager.cpp.o: In function `WalletGui::AddressBookManager::setDonationMiningEnabled(bool)':
> AddressBookManager.cpp:(.text+0x2e2a): undefined reference to `WalletGui::AddressBookManager::donationMiningEnabledSignal(bool)'
> CMakeFiles/Worktips.dir/src/Application/AddressBookManager.cpp.o: In function `WalletGui::AddressBookManager::setDonationMiningAddress(QString const&)':
> AddressBookManager.cpp:(.text+0x332e): undefined reference to `WalletGui::AddressBookManager::donationMiningAddressChangedSignal(QString const&)'
> CMakeFiles/Worktips.dir/src/Application/AddressBookManager.cpp.o: In function `WalletGui::AddressBookManager::setDonationMiningAmount(int)':
> AddressBookManager.cpp:(.text+0x3806): undefined reference to `WalletGui::AddressBookManager::donationMiningAmountChangedSignal(int)'
> CMakeFiles/Worktips.dir/src/Application/AddressBookManager.cpp.o: In function `W

Run all the commands in the README.md in the same order, in different Linux distributions (CentOS, Ubuntu 16.04, ArchLinux, Windows - fulfilling all the requirements of versions) always throws the same problem.

Also try to generate the .pro with qmake -project but it does not work, am I doing something wrong?

It seems to me that you are not generating the *moc _ .cpp correctly, can you share or upload the .pro to the repository?

Do you need me to upload some log?

Greetings.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions