The Visual Studio solution of google v8 3.0 or later has disabled the
runtime typeinfo and C++ exception by default. It may save some bits
of memory, but will broke the boost::python library and pyv8. So, we
must enable it before build pyv8. You could apply the [http://
code.google.com/p/pyv8/downloads/detail?name=common.patch&can=2&q=
patch] or modify it by manual.
http://code.google.com/p/pyv8/downloads/detail?name=common.patch&can=2&q=
Index: common.vsprops
===================================================================
--- common.vsprops (Version 5952)
+++ common.vsprops (Working Copy)
@@ -8,12 +8,12 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="$(ProjectDir)\..\..\src;$
(IntDir)\DerivedSources"
-
PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;ENABLE_VMSTATE_TRACKING;ENABLE_LOGGING_AND_PROFILING;ENABLE_DEBUGGER_SUPPORT"
+
PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=1;ENABLE_VMSTATE_TRACKING;ENABLE_LOGGING_AND_PROFILING;ENABLE_DEBUGGER_SUPPORT"
MinimalRebuild="false"
- ExceptionHandling="0"
- RuntimeTypeInfo="false"
+ ExceptionHandling="1"
+ RuntimeTypeInfo="yes"
WarningLevel="3"
- WarnAsError="true"
+ WarnAsError="false"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="3"
DisableSpecificWarnings="4355;4800"