Skip to main content
Renesas Electronics America - Knowledgebase

The E056231 message of the memcpy and memset functions (CC-RL)

Last Updated:06/14/2017


I am using RL78 Compiler CC-RL. When I specify the settings so that the standard math library is not used, the following error occurs. I use neither the memcpy nor memset functions in the program. Why does this error occur?

[E0562310:Undefined external symbol ""_memcpy"" referenced in ""DefaultBuild\main.obj""]
[E0562310:Undefined external symbol ""_memset"" referenced in ""DefaultBuild\main.obj""]


CC-RL uses the memcpy and memset functions as the runtime library. When your program is compiled, a code which uses the memcpy or memset function is output, which results in the error.
In CC-RL, the memcpy and memset functions are defined in the library file (*.lib) function for the runtime library function. Therefore, specify this runtime library (*.lib) in the linker.
If you do not want to use the runtime library, create the memcpy and memset functions yourself.

Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family