This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2007年10月18日 17:06 by weegreenblobbie, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (7) | |||
|---|---|---|---|
| msg56531 - (view) | Author: Nick (weegreenblobbie) | Date: 2007年10月18日 17:06 | |
pyconfig.h checks for _MSC_VER and based on its value decides to include <basetsd.h>. MS VC++ Express reports _MSC_VER to be 1400 but does _NOT_ have the file basetsd.h. So when including Python.h with the Microsoft VC Express compiler, pyconfig.h will try to include the non existing basetsd.h and compiling fails. |
|||
| msg56540 - (view) | Author: Martin v. Löwis (loewis) * (Python committer) | Date: 2007年10月18日 19:46 | |
What version of VC++ Express are you specifically referring to? |
|||
| msg56554 - (view) | Author: Nick (weegreenblobbie) | Date: 2007年10月19日 14:52 | |
MS VC++ 2005 Express Edition |
|||
| msg56568 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) | Date: 2007年10月19日 22:13 | |
I found that BaseTsd.h is part of the Windows SDK, which is not included in the Express Edition. It can be installed separately. OTOH, the python core still compiles without the #include <basetsd.h> (using VC++ 2005 Express Edition). What about other compilers? What is this file needed for? |
|||
| msg65049 - (view) | Author: Johannes Hoff (johanneshoff) | Date: 2008年04月06日 18:35 | |
This is still the case with Visual Studio Express 2008. It can be fixed by downloading the Windows SDK, though it would be nicer if this was not necessary. Download link: http://blogs.msdn.com/windowssdk/archive/2008/02/07/ windows-sdk-rtms.aspx I recommend the "web install", since only the headers and libraries are needed, not the whole 1GB blob that comes with it. Amaury: The file python.hpp, thus basetsd.h, is used by boost-python. |
|||
| msg65259 - (view) | Author: Martin v. Löwis (loewis) * (Python committer) | Date: 2008年04月09日 19:07 | |
> Amaury: The file python.hpp, thus basetsd.h, is used by boost-python. I don't think that was the question. Instead, the question was: why is basetsd.h needed in the first place, when compiling Python? Apparently, basetsd was added in r15912. Fred, can you remember what the rationale was? |
|||
| msg65292 - (view) | Author: Fred Drake (fdrake) (Python committer) | Date: 2008年04月10日 13:37 | |
On Apr 9, 2008, at 3:07 PM, Martin v. Löwis wrote: > Fred, can you remember what the rationale was? No; sorry. I didn't even remember that I'd ever built Python on Windows. Some things I've blocked out. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:27 | admin | set | github: 45638 |
| 2008年04月10日 13:37:23 | fdrake | set | messages: + msg65292 |
| 2008年04月09日 19:07:56 | loewis | set | nosy:
+ fdrake messages: + msg65259 |
| 2008年04月06日 18:35:18 | johanneshoff | set | nosy:
+ johanneshoff messages: + msg65049 |
| 2008年01月12日 03:12:35 | christian.heimes | set | status: open -> closed resolution: out of date |
| 2007年10月19日 22:13:18 | amaury.forgeotdarc | set | nosy:
+ amaury.forgeotdarc messages: + msg56568 |
| 2007年10月19日 14:52:09 | weegreenblobbie | set | messages: + msg56554 |
| 2007年10月18日 19:46:37 | loewis | set | nosy:
+ loewis messages: + msg56540 |
| 2007年10月18日 17:06:17 | weegreenblobbie | create | |