Keil™, An ARM® Company

Technical Support

CARM: UNRESOLVED EXTERNAL SYMBOL ?C?INIT


Information in this article applies to:

  • CARM All Versions

QUESTION

I have a problem with the Keil CARM Compiler. During the build process I get the following error message:

 
linking...
*** WARNING L23: UNRESOLVED EXTERNAL SYMBOLS
*** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL:  ?C?INIT
    ADDRESS: 00000124H

What can be the reason for this error?

ANSWER

The ?C?INIT symbol is used by the STARTUP.S startup file. It is generated by the CARM Compiler when you create a main function. ?C?INIT contains the memory clear function and variable initialization code. You need just to add an C main function to your application, for example:

void main (void)  {
  ;
}

MORE INFORMATION

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure