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

"make" command fail #3

Open
yangjingbo opened this issue Jul 26, 2020 · 1 comment
Open

"make" command fail #3

yangjingbo opened this issue Jul 26, 2020 · 1 comment

Comments

@yangjingbo
Copy link

When I execute "make" command in sent2src folder, It fails and show such tips, I don't know why.

asttext.o: In function fasttext::FastText::FastText()': fasttext.cc:(.text+0x506e): undefined reference to zmq_ctx_new'
fasttext.cc:(.text+0x5090): undefined reference to zmq_ctx_set' fasttext.cc:(.text+0x50ae): undefined reference to zmq_ctx_set'
fasttext.cc:(.text+0x50ce): undefined reference to zmq_socket' fasttext.cc:(.text+0x50ed): undefined reference to zmq_bind'
fasttext.cc:(.text+0x5239): undefined reference to zmq_close' fasttext.cc:(.text+0x524d): undefined reference to zmq_ctx_destroy'
fasttext.o: In function fasttext::FastText::nnSent(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)': fasttext.cc:(.text+0xce45): undefined reference to zmq_recv'
fasttext.cc:(.text+0xd14c): undefined reference to zmq_send' fasttext.o: In function zmq::error_t::what() const':
fasttext.cc:(.text._ZNK3zmq7error_t4whatEv[_ZNK3zmq7error_t4whatEv]+0x8): undefined reference to zmq_strerror' fasttext.o: In function zmq::error_t::error_t()':
fasttext.cc:(.text._ZN3zmq7error_tC2Ev[_ZN3zmq7error_tC5Ev]+0x14): undefined reference to zmq_errno' /tmp/ccoMrdh9.o: In function train(int, char**)':
main.cc:(.text+0x1743): undefined reference to zmq_close' main.cc:(.text+0x1758): undefined reference to zmq_ctx_destroy'
/tmp/ccoMrdh9.o: In function fasttext::FastText::~FastText()': main.cc:(.text._ZN8fasttext8FastTextD2Ev[_ZN8fasttext8FastTextD5Ev]+0x16): undefined reference to zmq_close'
main.cc:(.text._ZN8fasttext8FastTextD2Ev[_ZN8fasttext8FastTextD5Ev]+0x2a): undefined reference to `zmq_ctx_destroy'
collect2: error: ld returned 1 exit status
Makefile:49: recipe for target 'fasttext' failed

@yangjingbo
Copy link
Author

my OS system already installs libzmq, why this problem happen?

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