打印

MPLAB 问题could not find definition of symbol 'main' in file c018i.o'.

[复制链接]
3085|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
一夕愁L|  楼主 | 2012-3-22 15:58 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Executing: "D:\Microchip\MCC18\bin\mcc18.exe" -p=18F4580 /i"D:\Microchip\MCC18\h" "OS_CORE.C" -fo="OS_CORE.o" -D__DEBUG -mL -Ls -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "D:\Microchip\MCC18\bin\mcc18.exe" -p=18F4580 /i"D:\Microchip\MCC18\h" "OS_CPU_C.C" -fo="OS_CPU_C.o" -D__DEBUG -mL -Ls -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "D:\Microchip\MCC18\bin\mcc18.exe" -p=18F4580 /i"D:\Microchip\MCC18\h" "OS_TASK.C" -fo="OS_TASK.o" -D__DEBUG -mL -Ls -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "D:\Microchip\MCC18\bin\mcc18.exe" -p=18F4580 /i"D:\Microchip\MCC18\h" "OS_TIME.C" -fo="OS_TIME.o" -D__DEBUG -mL -Ls -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "D:\Microchip\MCC18\bin\mcc18.exe" -p=18F4580 /i"D:\Microchip\MCC18\h" "uCOS_II.C" -fo="uCOS_II.o" -D__DEBUG -mL -Ls -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "D:\Microchip\MCC18\bin\mcc18.exe" -p=18F4580 /i"D:\Microchip\MCC18\h" "Test.c" -fo="Test.o" -D__DEBUG -mL -Ls -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "D:\Microchip\MCC18\bin\_mplink.exe" /l"D:\Microchip\MCC18\lib" /k"D:\Microchip\MCC18\lkr" "D:\Microchip\MCC18\lkr\18f4580.lkr" "OS_CORE.o" "OS_CPU_C.o" "OS_TASK.o" "OS_TIME.o" "uCOS_II.o" "Test.o" /z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /m"yizhiPIC.map" /w /o"yizhiPIC.cof"
MPLINK 4.30.01, Linker
Copyright (c) 2009 Microchip Technology Inc.
Error - could not find definition of symbol 'main' in file 'D:\Microchip\MCC18\lib/c018i.o'.
Errors    : 1
Link step failed.


这是我在PIC18f4580上移植uCOS-II是遇到的情况,,,,为什么在c018i.o'中找不到main 啊??  求指点!

相关帖子

沙发
airwill| | 2012-3-23 10:38 | 只看该作者
连接器没有找到 main 函数.

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

主题

7

帖子

1

粉丝