UCOS.lib not found

I’m very new to the Rabbit development environment.
I’m using the RCM6500W Dlx dev kit with Dynamic C 10.66

I’ve added a call to OSTimeDlySec() in my program,
UCOS.LIB cannot be found is displayed when i compile.
The built-in help refers to , so my program has the following
line
#use before the function call.

I’ve also tried using #use with the same results.

Would someone help me understand why this function cannot be resolved?

thanks

Hi,

Use the library function like this #use"UCOS.LIB"

Tried that. Here is a pasting of my code
#use “UCOS.LIB”

OSTimeDlySec(1);

“UCOS.LIB CANNOT BE FOUND” still persists

Hi,
I am sorry. There is no file like “UCOS.LIB” .
You have to use #use “UCOS2.LIB”

You can see this file under C:\DCRABBIT_10.66\Lib\Rabbit4000\UCOS2 directory

>>I am sorry. There is no file like “UCOS.LIB” .
This is what the help file refers to

>>You have to use #use “UCOS2.LIB”
I"ve already tried this as well, nothing changes.

I do see the file in the Rabbit4000\UCOS2 directory though

Hi , I have compiled successfully below program on RCM6700

#use “UCOS2.LIB”
main()
{
OSTimeDlySec(1);
printf("Test…
");
}

I’ve created a new file with the following code

#use “UCOS2.LIB”
main()
{
//brdInit();
while(1)
{
printf("
BEFORE
“);
OSTimeDlySec(10);
printf(”
AFTER
");
}
}

This DOES compile and run without error,
but the before & after printfs are displayed immediately,
as if the call to OSTimeDlySec() doesn’t exist.

The help does state that the argument is in seconds, but since it is wrong regarding the name of the library, who knows what other information could be incorrect.

This program will not produce the result you expect as you have not created any tasks and have not initialised the RTOS at all. You will need to have a look at some of the samples to see how to do this properly.

Regards,
Peter