error C2065: “uint8_t”: 未聲明的標識符


轉載:https://blog.csdn.net/lys07962000/article/details/12052571

 

參考:
http://blog.csdn.net/chenxin_130/article/details/8580706

該錯誤由於uint32_t與uint8_t未定義造成,加入定義后編譯成功。

#if _MSC_VER < 1600 // Visual Studio 2008 and older doesn't have stdint.h... 

 

typedef __int64 int64_t; 

typedef unsigned __int64 uint64_t; 

typedef unsigned __int32 uint32_t; 

typedef unsigned __int16 uint16_t; 

typedef unsigned __int8 uint8_t; 

 

#else  #include <stdint.h>  // 2010之前的版本的安裝目錄下沒有該文件,

#endif  vs2010添加 stdint.h 就可以


VC2008 error :uint8_t , uint16_t ……未能識別,沒有定義

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM