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

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

   more1047 
more1047发表的帖子 

 [求助]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




发表时间:2011年8月14日15:46:02

  
回复该帖

本主题共有 1 帖,分页:>>>>>该主题的所有内容[1]条

 *树形目录 只列出部分跟帖的标题以及简单的摘要信息 该主题的部分跟帖如下:

[上一篇帖子]:[原创]ARM与嵌入式入门的建议 /P P 由于很多人总问这个问题,所以这里做一个总结文档供大家
[下一篇帖子]:信盈达单片机培训 嵌入式培训[em03]  hah hhah