why it says "can not open file "python26.lib""?
When I try to use the cl -LD test.c -test.dll
, it says can not open "python26.lib"
, why this happens?? thank you. (I was trying to generate a dll
file by this command so that python co开发者_运维知识库uld call it)
Taken from this link - Hope this will help you -
This is caused by the following lines in the file c:\Python26\include \pyconfig.h
# ifdef _DEBUG
# pragma comment(lib,"python26_d.lib")
# else
# pragma comment(lib,"python26.lib")
# endif /* _DEBUG */
So please:
- Provide python26_d.lib in the installer.
or
- Remove this automatic "pragma comment lib" from pyconfig.h, since I can't disable it from the outside (as far as I know).
精彩评论