message queue

I have the pro edition. I'm trying to use message queues without success in compiling the project.
Here is a try based of the tut5
I'm working with MPLAB (build 8.33), Compiler C-30 (build 3.12). salvo (build 4.2.2) library: C:PumpkinSalvoLibMCC30-v3libsalvolmcc30it,
I marked the changes that I have done with green color. I'm trying to do the same in my project, working with source file not library, facing the same error.
Please Advice,
Michael David.
Configuration:
code:
#define OSUSE_LIBRARY TRUE#define OSLIBRARY_TYPE OSL
#define OSLIBRARY_CONFIG OST
#define OSENABLE_MESSAGE_QUEUES TRUE
#define OSEVENTS 2
#define OSEVENT_FLAGS 0
#define OSMESSAGE_QUEUES 1
#define OSTASKS 3
main :
#include <salvo.h>
#include "p24HJ256GP610.h"
#define LOOPS_PER_TICK 100 /* <64K */
#define TASK_COUNT_P OSTCBP(1) /* task #1 */
#define TASK_SHOW_P OSTCBP(2) /* "" #2 */
#define TASK_BLINK_P OSTCBP(3) /* "" #3 */
#define PRIO_COUNT 10 /* task priorities*/
#define PRIO_SHOW 10 /* "" */
#define PRIO_BLINK 2 /* "" */
#define BINSEM_UPDATE_PORT_P OSECBP(1) /* binSem #1 */
#define MSGQ1_P OSECBP(2)
#define MQCB1_P OSMQCBP(1)
#define SIZEOF_MSGQ1 7
/* allocate memory for buffers */
OSgltypeMsgQP MsgQBuff1[SIZEOF_MSGQ1];
unsigned int counter;
void TaskCount (void)
{
for (; ;)
{
counter++;
/* Every time bit 8 of counter rolls over, signal the binSem. */
if (!(counter & 0x01FF))
{
OSSignalBinSem(BINSEM_UPDATE_PORT_P);
}
/* Context-switch so other tasks can run. */
OS_Yield();
}
}
void TaskShow (void)
{
for (; ;)
{
/* Context-switch and wait for TaskCount() to signal that 512 */
/* counts have elapsed. */
OS_WaitBinSem(BINSEM_UPDATE_PORT_P, OSNO_TIMEOUT);
/* Write upper 7 bits of 16-bit counter PORTA:[7..1]. */
PORTA = (PORTA & ~0xFE) | ((counter >> 8) & 0xFE);
}
}
void TaskBlink (void)
{
/* Set PORTA to all-outputs, initialize to 0x00. This only happens */
/* when the tasks starts. */
TRISA = 0x00;
PORTA = 0xAA;
LATA = 0xAA;
for (; ;)
{
/* Toggle PORTA:0 */
PORTA ^= 0x01;
/* Context-switch and return in 50 ticks. */
OS_Delay(50);
}
}
int main (void)
{
unsigned int ticks;
OSInit();
OSCreateTask(TaskCount, TASK_COUNT_P, PRIO_COUNT);
OSCreateTask(TaskShow, TASK_SHOW_P, PRIO_SHOW );
OSCreateTask(TaskBlink, TASK_BLINK_P, PRIO_BLINK);
OSCreateBinSem(BINSEM_UPDATE_PORT_P, 0);
/* create message queues from existing */
/* buffers and mqcbs. */
OSCreateMsgQ(MSGQ1_P, MQCB1_P, MsgQBuff1,SIZEOF_MSGQ1);
counter = 0;
ticks = LOOPS_PER_TICK;
__asm__ volatile("disi #0x0000");
for (; ;)
{
/* synthesize a system tick rate without having to use interrupts. */
if (ticks-- == 0)
{
OSTimer();
ticks = LOOPS_PER_TICK;
}
OSSched();
}
}
Compilation result:
----------------------------------------------------------------------
Debug build of project `C:PumpkinSalvoExamplePICPIC24SimulatorTutTut6MCC30 ut5pro-lib.mcp' started.
Language tool versions: pic30-as.exe v3.12, pic30-gcc.exe v3.12, pic30-ld.exe v3.12, pic30-ar.exe v3.12
Preprocessor symbol `__DEBUG' is defined.
Thu Aug 20 13:18:57 2009
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:PumpkinSalvoSrcsalvomem.o".
Clean: Deleted file "C:PumpkinSalvoSrcMCC30salvohook_interrupt_PIC24_IRQ.o".
Clean: Deleted file "C:PumpkinSalvoSrcsalvohook_wdt.o".
Clean: Done.
Executing: "C:Program FilesMicrochipMPLAB C30inpic30-gcc.exe" -mcpu=24HJ256GP610 -x c -c "salvomem.c" -o"salvomem.o" -I"C:PumpkinSalvoExamplePICPIC24SimulatorTutTut5MCC30Pro-lib" -I"C:PumpkinSalvoInc" -D__DEBUG -g
Executing: "C:Program FilesMicrochipMPLAB C30inpic30-gcc.exe" -mcpu=24HJ256GP610 -x c -c "salvohook_interrupt_PIC24_IRQ.c" -o"salvohook_interrupt_PIC24_IRQ.o" -I"C:PumpkinSalvoExamplePICPIC24SimulatorTutTut5MCC30Pro-lib" -I"C:PumpkinSalvoInc" -D__DEBUG -g
Executing: "C:Program FilesMicrochipMPLAB C30inpic30-gcc.exe" -mcpu=24HJ256GP610 -x c -c "salvohook_wdt.c" -o"salvohook_wdt.o" -I"C:PumpkinSalvoExamplePICPIC24SimulatorTutTut5MCC30Pro-lib" -I"C:PumpkinSalvoInc" -D__DEBUG -g
Executing: "C:Program FilesMicrochipMPLAB C30inpic30-gcc.exe" -mcpu=24HJ256GP610 -x c -c "main.c" -o"main.o" -I"C:PumpkinSalvoExamplePICPIC24SimulatorTutTut5MCC30Pro-lib" -I"C:PumpkinSalvoInc" -D__DEBUG -g
main.c: In function 'main':
main.c:107: error: 'OSmqcbArea' undeclared (first use in this function)
main.c:107: error: (Each undeclared identifier is reported only once
main.c:107: error: for each function it appears in.)
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `C:PumpkinSalvoExamplePICPIC24SimulatorTutTut6MCC30 ut5pro-lib.mcp' failed.
Language tool versions: pic30-as.exe v3.12, pic30-gcc.exe v3.12, pic30-ld.exe v3.12, pic30-ar.exe v3.12
Preprocessor symbol `__DEBUG' is defined.
Thu Aug 20 13:19:01 2009
----------------------------------------------------------------------
BUILD FAILED
[This message has been edited by aek (edited August 20, 2009).]