TooTallNate/node-gyp — Issue #17: error: exception handling disabled, use -fexceptions to enable
Author: mojodna
Created: 2012-02-11 01:25:27+00:00
State: open

I'm trying to update [zeromq.node](https://github.com/JustinTulloss/zeromq.node) to use `gyp` as part of the process of getting it running on Windows (JustinTulloss/zeromq.node#81). I'm currently blocked by `gyp`'s `-fno-exceptions` default (I think), but will probably run into linking issues soon enough.

Here's `binding.gyp`:
```json
{
'targets': [
{
'target_name': 'binding',
'sources': [ 'binding.cc' ],
'cflags': ['-fexceptions'],
'cflags_cc': ['-fexceptions']
}
]
}
```

Here's a transcript:
```bash
seth@lotus:~/src/JustinTulloss/zeromq.node [⚡ gyp] $ node-gyp configure --target=0.7
info it worked if it ends with ok
spawn python [ '/Users/seth/.node-gyp/0.7/tools/gyp_addon',
'-f',
'make',
'--suffix',
'.gyp',
'-I',
'/Users/seth/.node-gyp/0.7/tools/patch2722.gypi',
'-Dtarget_arch=x64' ]
info done ok
seth@lotus:~/src/JustinTulloss/zeromq.node [⚡ gyp] $ node-gyp build
info it worked if it ends with ok
spawn make [ 'BUILDTYPE=Release', '-f', 'Makefile.gyp' ]
CXX(target) out/Release/obj.target/binding/binding.o
binding.cc: In constructor ‘zmq::Context::Context(int)’:
binding.cc:185: error: exception handling disabled, use -fexceptions to enable
make: *** [out/Release/obj.target/binding/binding.o] Error 1
ERR! `make` failed with exit code: 2
ERR! not ok
```