error: exception handling disabled, use -fexceptions to enable #17
Closed
Description
I'm trying to update 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
:
{
'targets': [
{
'target_name': 'binding',
'sources': [ 'binding.cc' ],
'cflags': ['-fexceptions'],
'cflags_cc': ['-fexceptions']
}
]
}
Here's a transcript:
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
Metadata
Assignees
Labels
No labels