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 nzmqt::ZMQContext` on ubuntu #51

Open
grexdevops opened this issue Mar 13, 2019 · 1 comment
Open

Comments

@grexdevops
Copy link

grexdevops commented Mar 13, 2019

I'm following the examples to create a console application that uses the pub-sub pattern using Qt on ubunutu. I'm using the include method of working with the code. When I try to compile my application I get several errors like:

undefined reference to 'vtable for nzmqt::ZMQContext'
undefined reference to 'vtable for nzmqt:;PollingZMQContext'

I opened all of the project files provided in the code and they all compile and run properly. Yet, when I try to include the <nzmqt/nzmqt.hpp> file, I get the error messages.

I'm using version 3.2.1 of nzmqt and 5.12.1 of Qt.

(Note: This relates to a post in the Qt forum: https://forum.qt.io/topic/100688/error-using-include-method-with-nzmqt-undefined-reference-to-vtable-for-nzmqt-zmqcontext )

@grexdevops
Copy link
Author

I switched to the static library method and that seems to be working.

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