|
|||||||||||
|
Technical Support Support Resources
Product Information |
BL51: Unresolved Symbol ?C_STARTUPInformation in this article applies to:
SYMPTOMSWhen writing single-file projects using in-line assembly, the linker produces the following warning:
For example, the following program:
When compiled, assembled, and linker in µVision2, generates the warning above. To translate this file, you must enable the following 2 checkboxes in Project - Options for file - Properties:
CAUSEWhen you compile all your C modules with the SRC directive and the assembler, the linker does not detect the required C run-time libraries (because the files were assembled). In this case, you must add the libraries to your project manually. RESOLUTIONFor a project in the SMALL memory model that uses no floating point arithmetic, C51S.LIB is required. For a project in the LARGE memory model that uses floating-point, C51FPL.LIB and C51L.LIB are required. If a project uses floating arithmetic, it is important that C51FPx.LIB is included before the standard library file C51x.LIB. Otherwise printf and scanf will not work with floating-point numbers. When you are using µVision, you may simply add the require library file(s) to the project in the same way as you are adding source files. SEE ALSO
Last Reviewed: Thursday, February 25, 2021 | ||||||||||
|
|||||||||||
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.