阅读:4797回复:3
连接出现warning,求救大虾?(急急急)
小弟最近用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 调试了好久都不知道是什么原因,不知哪位大虾能帮下我,谢谢! |
|
沙发#
发布于: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 你仔细检查上述的两个过程变量 |
|
板凳#
发布于: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 上面两个函数没有用过,可以注释掉辟免警告。 |
|
地板#
发布于: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 注意你那些外部变量的用法,看是否需要用外部变量,或者是否需要用条件编译,不需要的文件就不要包含它们。 |
|