Link error L1822 + uCOS-II

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

Link error L1822 + uCOS-II

ソリューションへジャンプ
3,493件の閲覧回数
nicolas
Contributor I
Hello,

I use codewarrior with a card with HC12 (mc9s12dt256).
I try to use uCOS-II on this card. For the moment, I try to compile the test file of uCOS for HC12. I try to compile it in codewarrior and view the results in the simulator of codewarrior.

My problem is the next :
- I have add the .h and the .c of uCOS in the lib folder of codewarrior
- I have not modify the test file
- When I compile the file, I have a lot of link errors L1822.
The errors are :
Link error : L1822 : Symbol OSInit in file C:\prj\test.c.o is undefined.

Someone can help me, because I search since 5 days and I don't progress.
Thanks for your help.

Nicolas
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,489件の閲覧回数
Alban
Senior Contributor II
Salut Nico,
 
Here are my two pence worth.
Your LINKER error means that you have included the new C-file properly in your test.c.
However, a symbol (= variable, array, constant... whatever) from uCOS is declared in its files but is not declared in test.c.
From the name of the symbol, I guess the function "OSInit" prototype need to be added as an extern in test.c for the LINKER to see the reference between the two files...
May be...
 
Bonne Chance,
Alban.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,490件の閲覧回数
Alban
Senior Contributor II
Salut Nico,
 
Here are my two pence worth.
Your LINKER error means that you have included the new C-file properly in your test.c.
However, a symbol (= variable, array, constant... whatever) from uCOS is declared in its files but is not declared in test.c.
From the name of the symbol, I guess the function "OSInit" prototype need to be added as an extern in test.c for the LINKER to see the reference between the two files...
May be...
 
Bonne Chance,
Alban.
0 件の賞賛
返信