當我嘗試編譯我的程序首先我得到這個錯誤:錯誤:矛盾的聲明uint32_t的
error: ‘uint32_t’ does not name a type
然後我包括
#include <stdint.h>
現在變成了這個錯誤:
/include/stdint.h:52: error: conflicting declaration ‘typedef unsigned int uint32_t’
/cuda/include/vector_types.h:452: error: ‘uint32_t’ has a previous declaration as ‘typedef struct uint32_t uint32_t’
任何建議來解決這個問題?由於
這不符合我的任何CUDA的發生基礎,因爲據我可以告訴。我可以包含'stdint.h'和/或直接使用'uint32_t'而不會出現問題。所以我懷疑你有沒有告訴我們你的環境。也許你應該提供一個簡短的小程序,演示了問題,然後提供你正在使用編譯,與你的機器配置(OS,CUDA版本等) –
@clouddy沿着精確的命令行,請註明答案之一正確。我會推薦前兩個答案中的任何一個。 – Andrew