开发者

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:

  1. Provide python26_d.lib in the installer.

or

  1. Remove this automatic "pragma comment lib" from pyconfig.h, since I can't disable it from the outside (as far as I know).
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜