cppzmq icon indicating copy to clipboard operation
cppzmq copied to clipboard

Compile Error on Apple M1

Open berkantay opened this issue 3 years ago • 3 comments

Hi everyone,

I am trying to compile the example source files under cppzmq-4.9.0/examples however when I run make I get Screen Shot 2022-10-29 at 22 11 04

In vscode I am able to see methods even though compiler errors about it. What could be the reason for that?

berkantay avatar Oct 29 '22 19:10 berkantay

Are you sure the zmq.hpp in /usr/local/include is version 4.9.0? What version of C++ are you using?

gummif avatar Oct 30 '22 15:10 gummif

Yes I download it from the latest release of the repository. This my /usr/local/include output

Screen Shot 2022-10-31 at 00 07 00 G++ version output is below: Screen Shot 2022-10-31 at 00 07 33

berkantay avatar Oct 30 '22 21:10 berkantay

I guess there is a mismatch somewhere (inspect zmq.hpp to verify the version) or you are not compiling with C++11 or later.

gummif avatar Oct 31 '22 12:10 gummif