Link error L1822 Symbol  is undefined.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Link error L1822 Symbol  is undefined.

1,096件の閲覧回数
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 返信

899件の閲覧回数
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 件の賞賛
返信