Page 1 of 1

Getting Started Problem

PostPosted: Thu Sep 22, 2005 8:58 am
by john_c
Hello All,

when compiling (using HI-Tech C)any of the "tut" examples that use a semaphore or message box I get an error as below

Error[000] C:salvo ut u4main.c 34 : undefined identifier: OSecbArea
Error[000] C:salvo ut u4main.c 34 : pointer required
Error[000] C:salvo ut u4main.c 34 : pointer required

Would appreciate any suggestions.

Thanks


Re: Getting Started Problem

PostPosted: Fri Sep 23, 2005 4:45 am
by aek
Assuming you've added Salvo's mem.c to your project and you're building with a Salvo library, I suspect the problem is that you have

#define OSLIBRARY_CONFIG OSM

or

#define OSLIBRARY_CONFIG OSD

in your salvocfg.h.

That's won't do, because that is telling Salvo that the Salvo library you're using supports only basic multitasking ('m') or multitasking with delays ('d'). You would need to set OSLIBRARY_CONFIG to OSE (event support), OSA (event + delays support) or OST (event + delays + timeout support), and choose the appropriate Salvo library as well ...

If it's a source-code build, you have to add

#define OSENABLE_SEMAPHORES TRUE
#define OSENABLE_MESSAGES TRUE

to your salvocfg.h.

------------------


Re: Getting Started Problem

PostPosted: Mon Sep 26, 2005 2:10 am
by john_c
Thankyou AEK for the prompot response. Yes your reply has fixed the problem and now all is working fine.

John


quote:
Originally posted by aek:
Assuming you've added Salvo's mem.c to your project and you're building with a Salvo library, I suspect the problem is that you have

#define OSLIBRARY_CONFIG OSM

or

#define OSLIBRARY_CONFIG OSD

in your salvocfg.h.

That's won't do, because that is telling Salvo that the Salvo library you're using supports only basic multitasking ('m') or multitasking with delays ('d'). You would need to set OSLIBRARY_CONFIG to OSE (event support), OSA (event + delays support) or OST (event + delays + timeout support), and choose the appropriate Salvo library as well ...

If it's a source-code build, you have to add

#define OSENABLE_SEMAPHORES TRUE
#define OSENABLE_MESSAGES TRUE

to your salvocfg.h.