Link error L1822 + uCOS-II

cancel
Showing results for 
Search instead for 
Did you mean: 

Link error L1822 + uCOS-II

Jump to solution
2,065 Views
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
Labels (1)
Tags (1)
0 Kudos
1 Solution
61 Views
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.

View solution in original post

0 Kudos
1 Reply
62 Views
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.

View solution in original post

0 Kudos