Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

On Windows: warning C4530 #45

Closed
albertosantini opened this issue Oct 16, 2012 · 2 comments
Closed

On Windows: warning C4530 #45

albertosantini opened this issue Oct 16, 2012 · 2 comments

Comments

@albertosantini
Copy link

Installing the module on windows I get the following warning:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used, but unwind semantics are not enabled.Specify /EHsc

I suggest to enable the exception handling modifying binding.gyp:

{
  'targets': [
    {
      'target_name': 'contextify',
      'sources': [ 'src/contextify.cc' ]
    }
  ],
  'configurations': {
    'Release': {
      'msvs_settings': {
        'VCCLCompilerTool': {
          'ExceptionHandling': 1
        }
      }
    }
  }
}

P.S.: As workaround it is possible to modify the common.gypi located at

%USERPROFILE%\.node-gyp\__NODE_RELASE__\common.gypi

Sadly we should update that file every time we update the nodejs release.

@fshost
Copy link

fshost commented Feb 15, 2013

Regarding the workaround, what specifically would need to be added to common.gypi to enable exception handling?

@albertosantini
Copy link
Author

@fshost, you need to modify common.gypi, setting to one the two entries for 'ExceptionHandling' property.

The folder .node-gyp, containing nodejs libraries, is added automagically when the module is installed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants