共3条
1/1 1 跳转至页
问
在编译周立功光盘附带的例子(Ucosii 2.52 for lpc2100\EX1_ARM)时,居然出了104个错误,我是把整个文件夹从光盘拷到硬盘,没做任何改动就编译,下面是所有的错误。周立功那本手册写得比较简单,不知道这个例子是做什么的。
Could not find or load the file 襉s_cpu_a.s?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_cpu_c.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Error : (Serious) C2857E: #include file "..\..\ARM\os_cpu.h" wouldn't open Includes.h line 40 Error : C2285E: expected ';' or ',' - inserted ';' before 'OS_FLAGS' os_cfg.h line 114 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'OS_FLAGS' os_cfg.h line 114 Error : (Serious) C2857E: #include file "..\..\source\ucos_ii.h" wouldn't open Includes.h line 42 Error : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 63 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'y' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'y' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'c' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'c' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'color' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'color' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 63 Error : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 63 Error : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 64 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before 'bgnd_color' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'bgnd_color' pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 64 Error : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 64 Error : C2285E: expected ')' or ',' - inserted ')' before 'y' pc.h line 65 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 65 Error : (Fatal) C2285E: C3047U: Too many errors pc.h line 65 Could not find or load the file 襉s_core.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_flag.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_mbox.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_mem.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_mutex.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_q.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_sem.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_task.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_time.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Error : (Serious) C2857E: #include file "..\..\ARM\os_cpu.h" wouldn't open Includes.h line 40 Error : C2285E: expected ';' or ',' - inserted ';' before 'OS_FLAGS' os_cfg.h line 114 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'OS_FLAGS' os_cfg.h line 114 Error : (Serious) C2857E: #include file "..\..\source\ucos_ii.h" wouldn't open Includes.h line 42 Error : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 63 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'y' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'y' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'c' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'c' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'color' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'color' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 63 Error : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 63 Error : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 64 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before 'bgnd_color' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'bgnd_color' pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 64 Error : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 64 Error : C2285E: expected ')' or ',' - inserted ')' before 'y' pc.h line 65 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 65 Error : (Fatal) C2285E: C3047U: Too many errors pc.h line 65 Error : (Serious) C2857E: #include file "..\..\ARM\os_cpu.h" wouldn't open Includes.h line 40 Error : C2285E: expected ';' or ',' - inserted ';' before 'OS_FLAGS' os_cfg.h line 114 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'OS_FLAGS' os_cfg.h line 114 Error : (Serious) C2857E: #include file "..\..\source\ucos_ii.h" wouldn't open Includes.h line 42 Error : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 63 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'y' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'y' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'c' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'c' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'color' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'color' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 63 Error : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 63 Error : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 64 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before 'bgnd_color' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'bgnd_color' pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 64 Error : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 64 Error : C2285E: expected ')' or ',' - inserted ')' before 'y' pc.h line 65 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 65 Error : (Fatal) C2285E: C3047U: Too many errors pc.h line 65
答 1: 例子中没有uCOS的源码,首先要添加源码(2.52版本)这个例子是uCOS作者的经典移植示例。 答 2: 请问具体应该怎么做(或者要读什么)才能让例子跑起来?请问具体应该怎么做(或者要读什么)才能让例子跑起来?
多谢
Camel2005
Could not find or load the file 襉s_cpu_a.s?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_cpu_c.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Error : (Serious) C2857E: #include file "..\..\ARM\os_cpu.h" wouldn't open Includes.h line 40 Error : C2285E: expected ';' or ',' - inserted ';' before 'OS_FLAGS' os_cfg.h line 114 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'OS_FLAGS' os_cfg.h line 114 Error : (Serious) C2857E: #include file "..\..\source\ucos_ii.h" wouldn't open Includes.h line 42 Error : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 63 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'y' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'y' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'c' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'c' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'color' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'color' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 63 Error : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 63 Error : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 64 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before 'bgnd_color' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'bgnd_color' pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 64 Error : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 64 Error : C2285E: expected ')' or ',' - inserted ')' before 'y' pc.h line 65 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 65 Error : (Fatal) C2285E: C3047U: Too many errors pc.h line 65 Could not find or load the file 襉s_core.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_flag.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_mbox.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_mem.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_mutex.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_q.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_sem.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_task.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Could not find or load the file 襉s_time.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp? Error : (Serious) C2857E: #include file "..\..\ARM\os_cpu.h" wouldn't open Includes.h line 40 Error : C2285E: expected ';' or ',' - inserted ';' before 'OS_FLAGS' os_cfg.h line 114 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'OS_FLAGS' os_cfg.h line 114 Error : (Serious) C2857E: #include file "..\..\source\ucos_ii.h" wouldn't open Includes.h line 42 Error : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 63 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'y' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'y' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'c' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'c' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'color' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'color' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 63 Error : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 63 Error : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 64 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before 'bgnd_color' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'bgnd_color' pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 64 Error : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 64 Error : C2285E: expected ')' or ',' - inserted ')' before 'y' pc.h line 65 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 65 Error : (Fatal) C2285E: C3047U: Too many errors pc.h line 65 Error : (Serious) C2857E: #include file "..\..\ARM\os_cpu.h" wouldn't open Includes.h line 40 Error : C2285E: expected ';' or ',' - inserted ';' before 'OS_FLAGS' os_cfg.h line 114 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'OS_FLAGS' os_cfg.h line 114 Error : (Serious) C2857E: #include file "..\..\source\ucos_ii.h" wouldn't open Includes.h line 42 Error : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 63 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'y' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'y' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'c' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'c' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before 'color' pc.h line 63 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'color' pc.h line 63 Error : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 63 Error : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 63 Error : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 64 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before 'bgnd_color' pc.h line 64 Error : C2225W: declaration lacks type/storage-class (assuming 'int'): 'bgnd_color' pc.h line 64 Error : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 64 Error : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 64 Error : C2285E: expected ')' or ',' - inserted ')' before 'y' pc.h line 65 Error : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 65 Error : (Fatal) C2285E: C3047U: Too many errors pc.h line 65
答 1: 例子中没有uCOS的源码,首先要添加源码(2.52版本)这个例子是uCOS作者的经典移植示例。 答 2: 请问具体应该怎么做(或者要读什么)才能让例子跑起来?请问具体应该怎么做(或者要读什么)才能让例子跑起来?
多谢
Camel2005
共3条
1/1 1 跳转至页
回复
| 有奖活动 | |
|---|---|
| 2026年“我要开发板活动”第三季,开始了! | |
| 硬核工程师专属补给计划——填盲盒 | |
| “我踩过的那些坑”主题活动——第002期 | |
| 【EEPW电子工程师创研计划】技术变现通道已开启~ | |
| 发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
| 【EEPW在线】E起听工程师的声音! | |
| 高校联络员开始招募啦!有惊喜!! | |
| 【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
我要赚赏金打赏帖 |
|
|---|---|
| 【分享开发笔记,赚取电动螺丝刀】在音频测试中顺序的调整可改变功效被打赏¥18元 | |
| 【分享开发笔记,赚取电动螺丝刀】点阵显示模块及其应用-----献给新年的小礼物被打赏¥22元 | |
| 基于地奇星开发板的数码管模块显示技术被打赏¥23元 | |
| window下生成compilecommands.json的的方法被打赏¥22元 | |
| 【S32K3XX】GPIO中断配置被打赏¥26元 | |
| 【分享开发笔记,赚取电动螺丝刀】WS2812B的RGB灯介绍以及驱动方法被打赏¥25元 | |
| PTC与NTC功能常规对比被打赏¥14元 | |
| 【S32K3XX】核间通信MU使用被打赏¥27元 | |
| 【分享开发笔记,赚取电动螺丝刀】关于3pin锂电池接口的介绍/使用被打赏¥16元 | |
| 以启明云端ESP32P4开发板实现TF卡读写功能被打赏¥28元 | |
我要赚赏金
