Link error L1822 Symbol  is undefined.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Link error L1822 Symbol  is undefined.

1,087 次查看
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

标签 (1)
0 项奖励
回复
1 回复

890 次查看
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 项奖励
回复