Trying to compile the example hello_world.c from the zeromq tutorial: http://zguide.zeromq.org/page:all#Ask-and-Ye-Shall-Receive Pretty sure I have everything installed in O
You list the ZeroMQ libraries in your question, but you do not actually link with them. Change the command line to this:
clang -Wall hwserver.c -o hwserver -L/usr/local/lib -lzmq
Explanation of the extra arguments:
-L/usr/local/lib
tells the linker to add a path (/usr/local/lib
) to the library search path.-lzmq
tells the library to link with the zmq
library.The $PATH
environment variable have nothing to do with this, it just tells the shell where to look for commands.