Hi,Sorry for my poor English!
This is a test main.c:
include
int main (void)
{
int major, minor, patch;
zmq_version (&major, &minor, &patch);
printf ("Current 0MQ version is %d.%d.%d\n", major, minor, patch);
return 0;
}
When I linked the libzmq.a(gcc main.c /usr/local/lib/libzmq.a),i get some errors(here is a part of errors) like:
/home/test1/armbuild/zeromq-3.2.4/src/ipc_connecter.cpp:116: undefined reference to `std::nothrow'
but i use :gcc main.c /usr/local/lib/libzmq.so
it works great,so how do i link the zmq static libraries?
Hi,Sorry for my poor English! This is a test main.c:
include
When I linked the libzmq.a(gcc main.c /usr/local/lib/libzmq.a),i get some errors(here is a part of errors) like: /home/test1/armbuild/zeromq-3.2.4/src/ipc_connecter.cpp:116: undefined reference to `std::nothrow' but i use :gcc main.c /usr/local/lib/libzmq.so it works great,so how do i link the zmq static libraries?