in_answer
驱动牛犊
驱动牛犊
  • 注册日期2005-03-11
  • 最后登录2005-03-12
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:4797回复:3

连接出现warning,求救大虾?(急急急)

楼主#
更多 发布于:2005-03-11 21:42
小弟最近用keil c51编译一个c文件,编译通过了,但在连接的时候出现了如下的warning:
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR ? _INIT_MEMPOOL?INIT_MEM
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?C _INITSEG
*** WARNING L1:UNRESOLVED EXTERNAL SYMBOL
    SYMBOL: _EXIT
*** WARNING L1:UNRESOLVED EXTERNAL SYMBOL
    SYMBOL: _FSCANF
*** WARNING L1:UNRESOLVED EXTERNAL SYMBOL
    SYMBOL: _FCLOSE
*** WARNING L1:UNRESOLVED EXTERNAL SYMBOL
    SYMBOL: _REWIND
*** WARNING L1:UNRESOLVED EXTERNAL SYMBOL
    SYMBOL: _FOPEN
*** WARNING L1:UNRESOLVED EXTERNAL SYMBOL
    SYMBOL: ?_FOPEN?BYTE
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL: _EXIT
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL: _FSCANF
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL: _FCLOSE
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL: _REWIND
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL: _FOPEN


调试了好久都不知道是什么原因,不知哪位大虾能帮下我,谢谢!




mengwg
驱动牛犊
驱动牛犊
  • 注册日期2005-03-11
  • 最后登录2005-03-14
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2005-03-14 08:39
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR ? _INIT_MEMPOOL?INIT_MEM
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?C _INITSEG
你仔细检查上述的两个过程变量
dududu4223
驱动牛犊
驱动牛犊
  • 注册日期2005-04-13
  • 最后登录2005-04-14
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2005-04-13 21:17
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR ? _INIT_MEMPOOL?INIT_MEM
*** WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?C _INITSEG

上面两个函数没有用过,可以注释掉辟免警告。
dududu4223
驱动牛犊
驱动牛犊
  • 注册日期2005-04-13
  • 最后登录2005-04-14
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2005-04-13 21:20
*** WARNING L1:UNRESOLVED EXTERNAL SYMBOL
SYMBOL: _EXIT
*** WARNING L1:UNRESOLVED EXTERNAL SYMBOL
SYMBOL: _FSCANF
*** WARNING L1:UNRESOLVED EXTERNAL SYMBOL
SYMBOL: _FCLOSE
*** WARNING L1:UNRESOLVED EXTERNAL SYMBOL
SYMBOL: _REWIND
*** WARNING L1:UNRESOLVED EXTERNAL SYMBOL
SYMBOL: _FOPEN
*** WARNING L1:UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?_FOPEN?BYTE
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _EXIT
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _FSCANF
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _FCLOSE
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _REWIND
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _FOPEN
注意你那些外部变量的用法,看是否需要用外部变量,或者是否需要用条件编译,不需要的文件就不要包含它们。
游客

返回顶部