How to repair this error "undefined reference to `OSMboxCreate'"

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

 

I use xmega128A1U.

I try to add ucos's codes.

However, I have some build errors when I built project  of Mainunit

 

 

 

https://sourceforge.jp/projects/...

 

 

(Build errors)

Error    166    ld returned 1 exit status    collect2.exe    0    0    MainUnit
Error    164    undefined reference to `OSMboxCreate'    C:\Users\myacount\Desktop\cc1101atxmega\trunk\CarWatch\MainUnit\Debug\Oper.c    1    1    MainUnit
Error    165    undefined reference to `OSMboxPend'    C:\Users\myacount\Desktop\cc1101atxmega\trunk\CarWatch\MainUnit\Debug\Oper.c    1    1    MainUnit
Error    163    undefined reference to `OSMboxPost'    C:\Users\myacount\Desktop\cc1101atxmega\trunk\CarWatch\MainUnit\Debug\Oper.c    1    1    MainUnit

 

 

I add this function's source code "OSMboxCreate","OSMboxPend","OSMboxPost" to this project.

 

 

I would like to tell me how to repair this source code.

 

Thanks

 

 

 

 

 

kenji maehara

Last Edited: Sat. Feb 14, 2015 - 01:35 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all.

 

I asked you a question, and thank you. I understood the cause of the build error. 

 

 

In the os_cfg.h,




#define OS_MBOX_EN                0u   /* Enable (1) or Disable (0) code generation for MAILBOXES      */



I understood this line is the problem.

I am sorry for a story irrelevant to AVR .

 

Thanks.

 

 

kenji maehara