2012-05-12 15 views
1

我想在cuda工具包4.1中設置VS2008中的CUDA。我寫了一個簡單的程序來打印Hello World。我無法編譯這個簡單的程序。 VS是給我下面的錯誤無法加載和解析VS2008中的清單

>Embedding manifest... 1>.\Debug\stream.exe.intermediate.manifest : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified. 1>Build log was saved at "file://c:\Users\myName\Documents\Visual Studio 2008\Projects\stream\stream\Debug\BuildLog.htm" 1>stream - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

可能是什麼問題呢?

回答

1

清單文件根本沒有生成,或者Visual Studio在錯誤的地方查找它。檢查清單文件的名稱和路徑是否匹配Solution Properties | Linker | Manifest FileSolution | Properties | Manifest Tool。您也許可以通過關閉Solution | Properties | Manifest Tool | Input and Output | Embed Manifest來臨時解決該問題,但這可能會導致運行該應用程序時出現問題。

+0

我關閉清單進程,但它不能啓動appname.exe文件... –

+0

你檢查你的建立日誌的任何其他線索出了什麼問題? –

0

嘗試從頭創建一個新的CUDA項目。這個工程在Visual Studio 2010與CUDA 4.1:

  • 打開Visual Studio
  • 選擇File | New | Project | Win32 Console Application。在應用程序設置中不需要更改。
  • 右鍵單擊解決方案中的項目。選擇Build Customizations
  • 選中複選框CUDA 4.1的目標
  • 右鍵單擊該項目並選擇Add | New Item | NVIDIA | CUDA | CUDA C/C++ file
  • 右鍵單擊該項目並選擇Properties
  • Configuration Properties | Linker | Input | Additional Dependencies,添加cudart.lib
  • 編譯
相關問題