Hi, I have a project that I'm able to build fine on Mac OS with CMake, but when I check same project out on Ubuntu 12.04, I'm getting undefined reference errors at link time.<br><br>Here's the relevant section of the CMakeLists.txt file, and make VERBOSE=1 output for both Mac OS X (success) and Ubuntu 12.04 (failure)<br>
<br><a href="https://gist.github.com/3776497">https://gist.github.com/3776497</a><br><br>The specific failure is <br><br><div class="line" id="LC12">In function `Comm_Create':</div><div class="line" id="LC13">Comm.c:(.text+0x42): undefined reference to `zctx_new'<br>
<br>This function is defined in libczmq.a (which is being linked in the Make output)<br><br>$ nm /usr/local/lib/libczmq.a | grep zctx_new<br>00000010 T zctx_new<br> U zctx_new<br> U zctx_new<br> U zctx_new<br>
U zctx_new<br> U zctx_new<br> U zctx_new<br> U zctx_new<br><br><br>The other failure is <br><pre>Comm.c:(.text+0x5c): undefined reference to `zsocket_new'<br><br>This function is also defined in libczmq.a<br>
<br>$ nm /usr/local/lib/libczmq.a | grep zsocket_new<br> U zsocket_new<br> U zsocket_new<br> U zsocket_new<br>00000000 T zsocket_new<br> U zsocket_new<br> U zsocket_new<br> U zsocket_new<br>
<br>What am I missing here?<br></pre> </div><br>