[Python-Dev] Python + Visual C++ 8.0? (original) (raw)
Adal Chiriliuc adal.chiriliuc at gmail.com
Tue Dec 27 23:21:58 CET 2005
- Previous message: [Python-Dev] Small any/all enhancement
- Next message: [Python-Dev] Python + Visual C++ 8.0?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tuesday, December 27, 2005 Ralf W. Grosse-Kunstleve wrote:
Sorry, the manifests are new to me. How can I check if the manifest is correctly embedded? FWIW: I already tried copying the manifest into the directory with the extensions.
To check if you have a manifest you need to use a tool like "Resource Hacker" or "XN Resource Editor".
http://www.wilsonc.demon.co.uk/d10resourceeditor.htm
Where did you get that manifest? You need one listing the MSVC runtime (not one which enables the XP look). Of course, it must be named exactly like you dll/pyd, with an additional .manifest extension.
In case it matters, here are the compiler and liker switches I am using (commands issued by scons):
cl /nologo /DCRTSECURENODEPRECATE /wd4996 /Zm800 /MD /GR /EHsc /DBOOSTDISABLETHREADS /DNDEBUG /Ox -DBOOSTPYTHONMAXBASES=2 -DBOOSTPYTHONSOURCE
link /nologo /incremental:no /dll /out:lib\cctbxmathext.pyd /implib:lib\cctbxmathext.lib /LIBPATH:lib
Am I missing some magic new switch?
Add /manifest to the linker options. This will generate cctbx_math_ext.pyd.manifest either in the output folder or in the intermediate one.
Then you need to run mt.exe to embedd the manifest: mt.exe /outputresource:"cctbx_math_ext.pyd;#2" /manifest cctbx_math_ext.pyd.manifest
- Previous message: [Python-Dev] Small any/all enhancement
- Next message: [Python-Dev] Python + Visual C++ 8.0?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]