zeromq / cppzmq

Header-only C++ binding for libzmq
http://www.zeromq.org
MIT License
1.93k stars 757 forks source link

Compile Error on Apple M1 #583

Open berkantay opened 1 year ago

berkantay commented 1 year ago

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?

gummif commented 1 year ago

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

berkantay commented 1 year ago

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
gummif commented 1 year ago

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