1
當我嘗試使用cl -LD test.c -test.dll
時,它說can not open "python26.lib"
,爲什麼會發生這種情況?謝謝。 (我是想通過這個命令生成dll
文件,以便蟒蛇可以叫它)爲什麼它說「無法打開文件」python26.lib「」?
當我嘗試使用cl -LD test.c -test.dll
時,它說can not open "python26.lib"
,爲什麼會發生這種情況?謝謝。 (我是想通過這個命令生成dll
文件,以便蟒蛇可以叫它)爲什麼它說「無法打開文件」python26.lib「」?
從這個link兩者 - 希望這將幫助你 -
這是通過在文件c以下行引起的: \ Python26 \包括 \ pyconfig.h
# ifdef _DEBUG
# pragma comment(lib,"python26_d.lib")
# else
# pragma comment(lib,"python26.lib")
# endif /* _DEBUG */
所以請:
或
謝謝你,我還搜查這個鏈接,那麼我將python26.dll複製到我的C文件夾,它並沒有表現出同樣的錯誤,但它表明:「致命錯誤LNK1120:1未被解析的外部」 – serina 2010-09-10 10:28:12
@ Serina - 也鏈接user32.lib。從這個鏈接得到 - http://www.ogre3d.org/addonforums/viewtopic.php?f=3&t=7672。不確定它是否相關。 – 2010-09-10 10:32:17