keil cコンパイラエラーと解決方法

8734 ワード

1. Warning 280:’i’:unreferenced local variable
      i                       i      
2 Warning 206:’Music3’:missing function-prototype
  Music3( )                        
       void Music3(void)                        
 extern void Music3(void),      
3 Compling :C:/8051/MANN.C
Error:318:can’t open file ‘beep.h’
     C:/8051/MANN.C        main.c     #i nclude “beep.h”, 
              beep.h         c:/8051       
4 Compling:C:/8051/LED.C
Error 237:’LedOn’:function already has a body
  LedOn( )                     
                          
5 ***WARNING 16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_DELAYX1MS?DELAY
  DelayX1ms( )                           
DelayX1ms( )         #if …..#endif,          
6 ***WARNING 6 :XDATA SPACE MEMORY OVERLAP
FROM : 0025H
TO: 0025H
      ROM  0025H       
        ROM      Pdata unsigned char XFR_ADC _at_0x25   XFR_ADC
      0x25,                  0x25      
7 WARNING 206:’DelayX1ms’: missing function-prototype
C:/8051/INPUT.C
Error 267 :’DelayX1ms ‘:requires ANSI-style prototype C:/8051/INPUT.C
        DelayX1ms                           
  
      DelayX1ms                     delay.h     
             
8 ***WARNING 1:UNRESOLVED EXTERNAL SYMBOL
SYMBOL:MUSIC3
MODULE:C:/8051/MUSIC.OBJ(MUSIC)
***WARNING 2:REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL:MUSIC3
MODULE:C:/8051/MUSIC.OBJ(MUSIC)
ADDRESS:0018H
        MUSIC             C       Prj       
     MUSIC3    MUSIC C   MUSIC C          
9 ***ERROR 107:ADDESS SPACE OVERFLOW
SPACE: DATA
SEGMENT: _DATA_GOUP_
LENGTH: 0018H
***ERROR 118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: VOLUME
MODULE: C:/8051/OSDM.OBJ (OSDM)
ADDRESS: 4036H
  data           0~0x7f,                   
     SMALL              R2~R7              
 data              0x7f             
      data             idata      
                                     
            
10.***WARNING L15: MULTIPLE CALL TO SEGMENT
SEGMENT: ?PR?_WRITE_GMVLX1_REG?D_GMVLX1
CALLER1: ?PR?VSYNC_INTERRUPT?MAIN
CALLER2: ?C_C51STARTUP
***WARNING L15: MULTIPLE CALL TO SEGMENT
SEGMENT: ?PR?_SPI_SEND_WORD?D_SPI
CALLER1: ?PR?VSYNC_INTERRUPT?MAIN
CALLER2: ?C_C51STARTUP
***WARNING L15: MULTIPLE CALL TO SEGMENT
SEGMENT: ?PR?SPI_RECEIVE_WORD?D_SPI
CALLER1: ?PR?VSYNC_INTERRUPT?MAIN
CALLER2: ?C_C51STARTUP
                               (      
       )    ,
               。
                        ,             
     ,          
               (             ,          
     ISR   ,        
  ,          )。
              (      ,arguments,[   ,     ,  
          ])                ,        ,   
     
   ,             。
  ,        WRITE_GMVLX1_REG  D_GMVLX1.C   D_GMVLX1.A51    ,
                   
          ,       VSYNC_INTERRUPT, MAIN.C  。
    :
                   (                ), 
         (        ),
            。
          ,        (linker)OVERLAY           
(overlay analysis)   ,  :
OVERLAY (?PR?_WRITE_GMVLX1_REG?D_GMVLX1 ! *)
                        。             ,
                  ,
                   (overlay analysis)  。  OVERLAY    
            。
              ,           。           
 :
1.             ,           #pragma disable       
      。    OVERLAY       
        。
2.          ,       ,             。
3.         。  :
void myfunc(void) reentrant {
...
}
               ,                 ,   
          STARTUP.A51      。
         RAM              。
11. *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_COMPARE?TESTLCD
  :       (   )  (     )      ,      
      。
                              。     
       。           。
    :  COMPARE()         #if …..#endif,        
  。
C            
Ambiguous operators need
parentheses
             
Ambiguous symbol ``xxx``
      
Argument list syntax error
       
Array bounds missing
       
Array size toolarge
      
Bad character in paramenters
          
Bad file name format in include
directive
             
Bad ifdef directive synatax
     ifdef     
Bad undef directive syntax
     undef     
Bit field too large
     
Call of non-function
        
Call to function with no
prototype
            
Cannot modify a const object
         
Case outside of switch
   case   
Case syntax error
Case     
Code has no effect
           
Compound statement missing{
     "{"
Conflicting type modifiers
         
Constant expression required
       
Constant out of range in
comparison
          
Conversion may lose
significant digits
           
Conversion of near pointer not
allowed
        
Could not find file ``xxx``
   XXX   
Declaration missing ;
    ";"
Declaration syntax error
         
Default outside of switch
Default    switch     
Define directive needs an
identifier
            
Division by zero
     
Do statement must have while
Do-while      while   
Enum syntax error
        
Enumeration constant syntax
error
        
Error directive :xxx
          
Error writing output file
       
Expression syntax error
       
Extra parameter in call
         
File name too long
     
Function call missing )
         
Fuction definition out of place
        
Fuction should return a value
         
Goto statement missing label
Goto       
Hexadecimal or octal constant
too large
16    8       
Illegal character ``x``
    x
Illegal initialization
      
Illegal octal digit
   8     
Illegal pointer subtraction
       
Illegal structure operation
        
Illegal use of floating point
       
Illegal use of pointer
      
Improper use of a
typedefsymbol
           
In-line assembly not allowed
         
Incompatible storage class
       
Incompatible type conversion
        
Incorrect number format
       
Incorrect use of default
Default     
Invalid indirection
       
Invalid pointer addition
      
Irreducible expression tree
          
Lvalue required
     0   0  
Macro argument syntax error
       
Macro expansion too long
        
Mismatched number of
parameters in definition
          
Misplaced break
      break   
Misplaced continue
      continue   
Misplaced decimal point
         
Misplaced elif directive
       elif
Misplaced else
      else
Misplaced else directive
           else
Misplaced endif directive
           endif
Must be addressable
        
Must take address of memory
location
         
No declaration for function
``xxx``
    xxx    
No stack
    
No type information
      
Non-portable pointer
assignment
       (    ) 
 
Non-portable pointer
comparison
       (    ) 
 
Non-portable pointer
conversion
       (    ) 
 
Not a valid expression format
type
         
Not an allowed type
        
Numeric constant too large
     
Out of memory
     
Parameter ``xxx`` is never
used
  xxx     
Pointer required on left side of
->
  ->        
Possible use of ``xxx`` before
definition
         xxx(  )
Possibly incorrect assignment
       
Redeclaration of ``xxx``
     xxx
Redefinition of ``xxx`` is not
identical
xxx         
Register allocation failure
       
Repeat count needs an lvalue
         
Size of structure or array not
known
           
Statement missing ;
     ";"
Structure or union syntax error
           
Structure size too large
       
Sub scripting missing ]
        
Superfluous & with function or
array
          "&"
Suspicious pointer conversion
       
Symbol limit exceeded
    
Too few parameters in call
             
   
Too many default cases
Default   (switch     
 )
Too many error or warning
messages
         
Too many type in declaration
       
Too much auto memory in
function
           
Too much global data defined
in file
         
Two consecutive dots
       
Type mismatch in parameter
xxx
  xxx      
Type mismatch in
redeclaration of ``xxx``
xxx          
Unable to create output file
``xxx``
        xxx
Unable to open include file
``xxx``
          xxx
Unable to open input file ``xxx``
        xxx
Undefined label ``xxx``
       xxx
Undefined structure ``xxx``
       xxx
Undefined symbol ``xxx``
       xxx
Unexpected end of file in
comment started on line xxx
 xxx            
     
Unexpected end of file in
conditional started on line xxx
 xxx           
       
Unknown assemble instruction
       
Unknown option
     
Unknown preprocessor
directive: ``xxx``
         xxx
Unreachable code
       
Unterminated string or
character constant
       
User break
         
Void functions may not return a
value
Void            
Wrong number of arguments
          
``xxx`` not an argument
xxx     
``xxx`` not part of structure
xxx          
xxx statement missing (
xxx        
xxx statement missing )
xxx        
xxx statement missing ;
xxx     
xxx`` declared but never used
   xxx      
xxx`` is assigned a value which
is never used
 xxx        
Zero length structure