博客專欄

        EEPW首頁 > 博客 > STM32常見錯誤error: #268: declaration may not appear after executable statement in block

        STM32常見錯誤error: #268: declaration may not appear after executable statement in block

        發(fā)布人:電子禪石 時間:2024-10-08 來源:工程師 發(fā)布文章

        此錯誤中文意思:聲明不能在可執(zhí)行語句后出現(xiàn)。

        表示有變量在函數(shù)后面聲明,應(yīng)該改為在函數(shù)開頭聲明變量。

        因?yàn)?span id="1xhvv99hnvjz" class="words-blog hl-git-1" style="box-sizing: border-box; outline: 0px; margin: 0px 3px 0px 0px; padding: 0px 18px 0px 0px; font-synthesis-style: auto; overflow-wrap: break-word; cursor: pointer; color: rgb(78, 161, 219); background: url("../img/gitcode-key.png") right center / 14px 14px no-repeat transparent; box-shadow: none;">keil 默認(rèn)編譯標(biāo)準(zhǔn)是C89,解決方法:

        *博客內(nèi)容為網(wǎng)友個人發(fā)布,僅代表博主個人觀點(diǎn),如有侵權(quán)請聯(lián)系工作人員刪除。



        關(guān)鍵詞: mdk

        相關(guān)推薦

        技術(shù)專區(qū)

        關(guān)閉
        主站蜘蛛池模板: 凌海市| 古丈县| 贺兰县| 行唐县| 吉林省| 红原县| 新营市| 云浮市| 开江县| 甘肃省| 历史| 垣曲县| 南京市| 扬州市| 中卫市| 仙桃市| 丹凤县| 北流市| 丹巴县| 阜阳市| 友谊县| 子洲县| 武鸣县| 灯塔市| 丹巴县| 肥西县| 延长县| 景德镇市| 肃北| 永州市| 庄浪县| 卢氏县| 通江县| 滦平县| 扬中市| 上高县| 巨野县| 四川省| 仁寿县| 潼关县| 军事|