Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"undefined reference to `vtable for" #7

Open
oPensyLar opened this issue Jul 9, 2019 · 0 comments
Open

"undefined reference to `vtable for" #7

oPensyLar opened this issue Jul 9, 2019 · 0 comments

Comments

@oPensyLar
Copy link

oPensyLar commented Jul 9, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant