ARM Technical Support Knowledge Articles

UNRESOLVED EXTERNAL SYMBOL ?C?INIT

Applies to: CARM C Compiler

Answer


Information in this article applies to:


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

Article last edited on: 2005-07-15 09:53:13

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential