Link error L1822 Symbol  is undefined.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Link error L1822 Symbol  is undefined.

1,089 Views
wizliu
Contributor I

I have a project, and include "string.h",but when i used [memset] and [memcpy] function, then display error.Why??

170700_170700.png22222.png

170699_170699.png111.png

PS:CodeWarrior IDE version 5.9.0    /   MC9S12XDP512

Labels (1)
0 Kudos
Reply
1 Reply

892 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello WIZ,

I test a simple project on my test about use the function of memcpy() on the chip of  MC9S12XDP512.

it can work well, the code just is :

char des[6];
char *s = "Alice";


void main(void) {
  ...
  memcpy(des,s,5);
  ...

}

Please see the attached video. Could you please test this simple project also on your side .

Hope it can helps


Have a great day,
Alice Yang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply