久久ER99热精品一区二区-久久精品99国产精品日本-久久精品免费一区二区三区-久久综合九色综合欧美狠狠

新聞中心

EEPW首頁 > 嵌入式系統 > 設計應用 > LPC2132學習中遇到的問題2

LPC2132學習中遇到的問題2

作者: 時間:2016-11-23 來源:網絡 收藏
在使用ADS1.2編譯程序的過程中,我們有函數如下定義:
void PutStr(uint8 x, uint8 y, uint8* str);
我們在主函數中有這樣的用法:
PutStr(0, 0, "Hello world!");
經編譯后,有如下錯誤:
Error: C3028E implicit cast of pointer to non-equal pointer
解決方法如下:
PutStr(0, 0, (uint8*)"Hello world!");
即將我們的字符串強制轉換為我們在函數中所定義的形式。
PS:

C3028E: implicit cast of pointer to non-equal pointer

本文引用地址:http://cqxgywz.com/article/201611/320130.htm

C3029E: implicit cast of non-0 int to pointer

C3030E: implicit cast of pointer to int

C3031E: implicit cast of to int

Try re-writing the code to avoid the implicit cast, e.g. add an explicit cast.
These errors can be suppressed with "-Ec".



關鍵詞: LPC2132字符

評論


技術專區

關閉