导航: 老古网老古论坛XMOS公共讨论区XMOS开源项目区单片机程序设计嵌入式系统广告区域
→[求助]pic编译时对一个已定义的函数总是报错[more1047]

 *第37651篇: [求助]pic编译时对一个已定义的函数总是报错

  
楼 主:more1047 2011年8月14日15:46
 [求助]pic编译时对一个已定义的函数总是报错
----------------------------------------------------------------------
Release build of project `F:\zigbee\cc2420\cc2420.mcp' started.
Language tool versions: mpasmwin.exe v5.42, mplink.exe v4.40, mcc18.exe v3.39, mplib.exe v4.40
Sun Aug 14 15:43:59 2011
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "F:\zigbee\cc2420\cc2420.o".
Clean: Done.
Executing: "D:\mcc18\bin\mcc18.exe" -p=18F452 "cc2420.c" -fo="cc2420.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
F:\zigbee\cc2420\cc2420.c:48:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:49:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:50:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:51:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:55:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:175:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:251:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:306:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:307:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:393:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:396:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:399:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:425:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:428:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:431:Warning [2058] call of function without prototype
F:\zigbee\cc2420\cc2420.c:434:Warning [2058] call of function without prototype
Executing: "D:\mcc18\bin\mplink.exe" /p18F452 /l"D:\mcc18\lib" "cc2420.o" /u_CRUNTIME /z__MPLAB_BUILD=1 /o"cc2420.cof" /M"cc2420.map" /W
MPLINK 4.40, Linker
Device Database Version 1.2
Copyright (c) 1998-2011 Microchip Technology Inc.
Error - could not find definition of symbol 'wirte_REGcomm' in file './cc2420.o'.Errors    : 1

Link step failed.图中加粗加下划线即为错误,我已在头文件定义了这个函数,不过编译时总是找不到,不解,求指导~~另外好个call of function without prototype
是指什么意思?我用的是mplab ide v8.3,c18编译器的,单片机型号是PIC18F452



>>>>>>对该主题发表你的看法

本主题贴数1,分页: [第1页]


[上一篇主题]:[原创]ARM与嵌入式入门的建议

[下一篇主题]:欲从事电子行业的应届生、没有电子实践经验、缺乏电子项目实践能力的人量身打造