新聞中心

        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://www.104case.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字符

        評論


        技術專區

        關閉
        主站蜘蛛池模板: 太仆寺旗| 涟源市| 和顺县| 大田县| 岐山县| 鲁甸县| 临沭县| 临潭县| 古田县| 天等县| 富宁县| 尚义县| 大名县| 交城县| 淅川县| 荥经县| 赫章县| 富阳市| 池州市| 左云县| 南开区| 新巴尔虎右旗| 田阳县| 平阴县| 延庆县| 沿河| 南澳县| 浮梁县| 景洪市| 卢氏县| 藁城市| 高密市| 凤庆县| 栾城县| 洞口县| 新民市| 常山县| 平昌县| 湟源县| SHOW| 泗阳县|