Open zephod77 opened 1 year ago
Update: The files that are failing to compile is mailbox_safe.cpp and mailbox.cpp. If I manually add the -std=c++11 flag, then it will compile. I can see that autoconf tools are being used and that there are tests for "gnu11" to set the -std flag so they must be failing for some reason.
Found a solution. I had to create an environment variable CXXFLAGS and set it to -std=c++11. I ended up creating a .cargo directory in my project's home and adding a file config.toml with the contents:
[env]
CXXFLAGS = "-std=c++11"
I don't know if this is considered a "good" solution but it works for me.
Same issue,thanks for the solution
I'm trying to compile on an old Centos7 machine. All I've done is add the zmq = "0.10.0" dependency to my Cargo.toml file and rebuild and zmq-sys fails with this error:
So my question is where do I add that c++ compiler option?