2013-08-19 603 views
4

我在Visual Studio 2005中遇到了一個錯誤。我使用boost python(boost_1_54_0)將python 3.3.2連接到C++。我遵循這個教程。致命錯誤LNK1181:無法打開輸入文件'C: Python33 Lib.obj'

http://www.thalesians.com/finance/index.php/Knowledge_Base/CPP/Boost_Python_Step_By_Step

和StackOverflow的質疑

Visual Studio: LINK : fatal error LNK1181: cannot open input file

我包含在鏈接器輸入所需的庫,但我仍然得到這個鏈接錯誤:

fatal error LNK1181: cannot open input file 'C:\Python33\Lib.obj' 

回答

3

要刪除此錯誤添加附加依賴在鏈接器中。 項目性質鑑別儀表 - >配置屬性 - >鏈接器 - >輸入 - >附加依賴 然後添加以下Libarary

C:\ python33 \庫\ python33.lib。

希望這個解決錯誤。

相關問題