# ADD BSC32 /nologo\r
LINK32=link.exe\r
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib python21.lib /nologo /subsystem:windows /dll /machine:I386 /libpath:"..\PCbuild" /export:initexample\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib python22.lib /nologo /subsystem:windows /dll /machine:I386 /libpath:"..\PCbuild" /export:initexample\r
# SUBTRACT LINK32 /pdb:none\r
\r
!ELSEIF "$(CFG)" == "example - Win32 Debug"\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib python21_d.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:".\Debug/example_d.dll" /libpath:"..\PCbuild" /export:initexample\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib python22_d.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:".\Debug/example_d.dll" /libpath:"..\PCbuild" /export:initexample\r
# SUBTRACT LINK32 /pdb:none\r
\r
!ENDIF \r
This directory contains everything needed (except for the Python\r
distribution!) to build a Python extension module using Microsoft VC++\r
("Developer Studio") version 6. It has been tested with VC++ 6.0 on Python\r
-2.1a1. You can also use earlier versions of VC to build Python extensions,\r
+2.2c1. You can also use earlier versions of VC to build Python extensions,\r
but the sample VC project file (example.dsw in this directory) is in VC 6\r
format.\r
\r
C>..\..\PCbuild\python_d\r
Adding parser accelerators ...\r
Done.\r
- Python 2.1a1 (#9, Jan 17 2001, 23:26:37) [MSC 32 bit (Intel)] on win32\r
- Type "copyright", "credits" or "license" for more information.\r
+ Python 2.2c1+ (#28, Dec 14 2001, 18:06:39) [MSC 32 bit (Intel)] on win32\r
+ Type "help", "copyright", "credits" or "license" for more information.\r
>>> import example\r
- [4897 refs]\r
+ [7052 refs]\r
>>> example.foo()\r
Hello, world\r
- [4903 refs]\r
+ [7052 refs]\r
>>>\r
\r
TESTING THE RELEASE-MODE DLL\r
("C>" is the DOS prompt, ">>>" is the Python prompt):\r
\r
C>..\..\PCbuild\python\r
- Python 2.1a1 (#9, Jan 17 2001, 23:26:37) [MSC 32 bit (Intel)] on win32\r
- Type "copyright", "credits" or "license" for more information.\r
+ Python 2.2c1+ (#28, Dec 14 2001, 18:06:04) [MSC 32 bit (Intel)] on win32\r
+ Type "help", "copyright", "credits" or "license" for more information.\r
>>> import example\r
>>> example.foo()\r
Hello, world\r
Now you need to add some mode-specific settings:\r
\r
Select "Win32 Release" in the "Settings for:" dropdown list. Click the\r
-"Link" tab, choose the "Input" Category, and append "python21.lib" to the\r
+"Link" tab, choose the "Input" Category, and append "python22.lib" to the\r
list in the "Object/library modules:" box.\r
\r
Select "Win32 Debug" in the "Settings for:" dropdown list, and append\r
-"python21_d.lib" to the list in the "Object/library modules:" box. Then\r
+"python22_d.lib" to the list in the "Object/library modules:" box. Then\r
click on the C/C++ tab, select "Code Generation" from the "Category:"\r
dropdown list, and select "Debug Multithreaded DLL" from the "Use run-time\r
library:" dropdown list.\r