aboutsummaryrefslogtreecommitdiff
path: root/Doc/Manual
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-06-11 00:22:21 -0700
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-06-11 00:22:21 -0700
commit5cdfc503e18e1f5b8895516c591332fda371d879 (patch)
treedeb16facf6bafb49689f99f003b8434d662d288f /Doc/Manual
parentabc27fd1572a32977dfc54d902a0cea6cdaeb3bd (diff)
downloadswig-5cdfc503e18e1f5b8895516c591332fda371d879.tar.gz
Add SWIG_PYTHON_NO_DEBUG macro for building Debug wrappers against the Python Debug dll
Diffstat (limited to 'Doc/Manual')
-rw-r--r--Doc/Manual/Python.html22
-rw-r--r--Doc/Manual/Windows.html2
2 files changed, 22 insertions, 2 deletions
diff --git a/Doc/Manual/Python.html b/Doc/Manual/Python.html
index 762abebba..fd7bfca4e 100644
--- a/Doc/Manual/Python.html
+++ b/Doc/Manual/Python.html
@@ -795,7 +795,9 @@ If you need to build it on your own, the following notes are provided:
You will need to create a DLL that can be loaded into the interpreter.
This section briefly describes the use of SWIG with Microsoft Visual
C++. As a starting point, many of SWIG's examples include project
-files. You might want to take a quick look at these in addition to
+files (.dsp files) for Visual C++ 6. These can be opened by more
+recent versions of Visual Studio.
+You might want to take a quick look at these examples in addition to
reading this section.
</p>
@@ -869,6 +871,24 @@ the build options of project to try and track this down.
</p>
<p>
+A 'Debug' build of the wrappers requires a debug build of the Python interpreter.
+This normally requires building the Python interpreter from source, which is not a
+job for the feint-hearted. Alternatively you can use the 'Release' build of the
+Python interpreter with a 'Debug' build of your wrappers by defining the <tt>SWIG_PYTHON_NO_DEBUG</tt>
+symbol under the preprocessor options. Or you can ensure this macro is defined at the beginning
+of the wrapper code using the following in your interface file, where <tt>_MSC_VER</tt> ensures it is
+only used by the Visual Studio compiler:
+</p>
+
+<div class="code"><pre>
+%begin %{
+#ifdef _MSC_VER
+#define SWIG_PYTHON_NO_DEBUG
+#endif
+%}
+</pre></div>
+
+<p>
Some users have reported success in building extension modules using Cygwin
and other compilers. However, the problem of building usable DLLs with these
compilers tends to be rather problematic. For the latest information,
diff --git a/Doc/Manual/Windows.html b/Doc/Manual/Windows.html
index c94a3da3b..c8467c78a 100644
--- a/Doc/Manual/Windows.html
+++ b/Doc/Manual/Windows.html
@@ -147,7 +147,7 @@ PERL5_LIB: D:\nsPerl5.004_04\lib\CORE\perl.lib<br>
<p>
-<b><tt>PYTHON_INCLUDE</tt></b> : Set this to the directory that contains python.h<br>
+<b><tt>PYTHON_INCLUDE</tt></b> : Set this to the directory that contains Python.h<br>
<b><tt>PYTHON_LIB</tt></b> : Set this to the python library including path for linking<p>
Example using Python 2.1.1:<br>
<tt>