node-kafka-native icon indicating copy to clipboard operation
node-kafka-native copied to clipboard

Fixing binding.gyp to work on Mac OS X 10.11

Open edoardocomar opened this issue 9 years ago • 2 comments

Adding -std=c++11 to xcpde compiler settings, to avoid this error : In file included from ../src/common.h:6: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/atomic:543:2: error: is not implemented

edoardocomar avatar May 27 '16 19:05 edoardocomar

hi @edoardocomar - sorry it didn't work for you immediately. I also develop primarily on a macbook, and don't need to add the c++ specification. I did have that in place much earlier in the project, though, but it became unnecessary, I thought.

Here's my clang version that is successfully compiling w/o the c++11 specifier:

$ clang --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

would you supply your clang version, please?

alfred-landrum avatar May 29 '16 15:05 alfred-landrum

Hi @alfred-landrum mine looks exactly the same:

edos-ibm-mbp:~ ecomar$ clang --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

edoardocomar avatar Jun 01 '16 09:06 edoardocomar