This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

When I use Mailbox_create to create a mailbox,there is linking error !

Other Parts Discussed in Thread: SYSBIOS

I refer to the example 'taskMutexExample_GenericC674xDevice' and add some code in it :

#include <xdc/std.h>
#include <xdc/runtime/System.h>

#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/knl/Clock.h>
#include <ti/sysbios/knl/Task.h>
#include <ti/sysbios/knl/Mailbox.h>
#include <ti/sysbios/knl/Semaphore.h>

#include <xdc/cfg/global.h>

#include <DataTypes.h>
#include <OsPubInterface.h>

......

Mailbox_Handleg_pMailbox;

/*

* ======== main ========
*/
Void main()
{
Task_Params taskParams;

....

g_pMailbox = Mailbox_create(5,10,NULL,NULL);

....}

Error information:

<Linking>

undefined                                                                         first referenced
symbol                                                                              in file
---------                                                                               ----------------
_ti_sysbios_knl_Mailbox_Object__create__S         ./mutex.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "taskMutexExample_GenericC674xDevice.out" not built

I have checked all the header files that had been inculded. Are there someting I have omitted?

Thank you!