2010-11-21 103 views
0

我試圖編譯英特爾Appup示例程序'SlideshowexampleApplication',它需要Xmllite.lib。我搜索了一下,看到我應該將此文件添加到Visual Studio 2008中的鏈接器選項,但是我沒有在Project properties-> Configuration properties下看到鏈接器選項。我嘗試添加'C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ Include'作爲附加包含目錄,但我仍然收到編譯錯誤。將xmllite.lib添加到Visual Studio 2008中

構建開始:項目:PicasaExampleComponent,配置:調試的Win32
創建庫...

LINK:致命錯誤LNK1181:無法打開輸入文件 'XMLLite程序\ LIB \ XmlLite.lib'

下面是示例項目: http://appdeveloper.intel.com/en-us/article/slideshow-example-windows

+0

lib中的哪個目錄? – 2010-11-21 20:03:27

+0

它在C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ Lib中,我在其他包含目錄列表中添加了它。 – Andy 2010-11-21 20:21:38

回答

1

這聽起來像樣品的應用程序使用的庫爲f的相對路徑ile,將XMLLite \ Lib添加到庫文件名。

這可能是發生在該示例應用程序代碼 #pragma的結果,可你的源代碼運行 findstr,看是否有到 XmlLite.lib任何引用?

http://msdn.microsoft.com/en-us/library/7f0aews7(v=VS.100).aspx有關#pragma上的信息,因爲它以這種方式使用。

編輯: 實際上這個樣品中的項目被設置爲引用安裝與樣本代碼XmlLite的:

G:\ SlideshowExample> FINDSTR/SI xmllite.lib PicasaExampleComponent \ PicasaExampleComponent.vcproj: AdditionalDependencies = 「XMLLite程序\ lib中\ XmlLite.lib」 PicasaExampleComponent \ PicasaExampleComponent.vcproj: AdditionalDependencies = 「XMLLite程序\ lib中\ XmlLite.lib」 PicasaExampleComponent \ PicasaExampleComponent.vcxproj: XMLLite程序\ lib中\ XmlLite.lib;%(AdditionalDependencies) PicasaExampleComponent \ PicasaExampleComponent.vcxproj: XMLLite程序\ LIB \ XmlLite.lib;%(AdditionalDependencies)

您可以使用一個或讓你安裝了一個SDK包含在內。

+0

謝謝,我將這些文件複製到XmlLite目錄中並進行編譯。 – Andy 2010-11-22 01:43:39

相關問題