I am using Salvo Pro v3.2.3 with Microchip MPLAB v8.10 and mcc18 v3.21.
I have come back to a project that I last worked on in August 2005. At that time the project built succesfully with the macros MAKE_WITH_STD_LIB and SYSE defined, linking with salvo/lib/slc18sfa.lib
Now... when I build the same project in what I believe to be an identical way the build fails with
C:salvoincsalvolbo.h:155:Error [1099] salvolbo.h: Illegal configuration option for library build: (!0 ) .
This error comes from the 'guard' file salvolbo.h:
(line 153) #if defined(OSENABLE_MESSAGES)
(line 154) #error salvolbo.h: Illegal configuration option for library build: OSENABLE_MESSAGES.
(line 155) #endif
If I change to MAKE_WITH_SOURCE (add the .c files, remove the .lib from the build) then the project builds fine.
In both cases (STD_LIB and SOURCE build) mt salvocfg.h file is as follows (lightly edited from one of the examples).
/************************************************************
Copyright (C) 1995-2002 Pumpkin, Inc. and its
Licensor(s). Freely distributable.
$Source: Work/LightBox/Code/PIC/Rev2/inc/salvocfg.h,v $
$Author: rye $
$Revision: 1.1 $
$Date: 2005/08/11 03:59:42 $
Header file for tutorial programs.
************************************************************/
#if defined(MAKE_WITH_FREE_LIB)
/* */
/* Salvo Lite build */
/* */
#define OSUSE_LIBRARY TRUE
#define OSLIBRARY_TYPE OSF
#define OSLIBRARY_GLOBALS OSF
#define OSLIBRARY_CONFIG OSA
#define OSEVENTS 1
#define OSEVENT_FLAGS 0
#define OSMESSAGE_QUEUES 0
#define OSTASKS 3
#elif defined(MAKE_WITH_STD_LIB)
/* */
/* Salvo LE & Pro library build */
/* */
#define OSUSE_LIBRARY TRUE
#define OSLIBRARY_TYPE OSL
#define OSLIBRARY_GLOBALS OSF
#define OSLIBRARY_CONFIG OSA
#define OSENABLE_MESSAGES TRUE
#define OSENABLE_MESSAGE_QUEUES TRUE
#define OSEVENTS 4 // number of flags, semaphores, messages, etc.
#define OSEVENT_FLAGS 0
#define OSMESSAGE_QUEUES 0
#define OSTASKS 4
#define OSTIMER_PRESCALAR 7
#elif defined(MAKE_WITH_SOURCE)
/* */
/* Salvo Pro source-code build */
/* */
#define OSBYTES_OF_DELAYS 1
#define OSENABLE_MESSAGES TRUE
#define OSENABLE_MESSAGE_QUEUES TRUE
#define OSEVENTS 4 // number of flags, semaphores, messages, etc.
#define OSEVENT_FLAGS 0
#define OSMESSAGE_QUEUES 0
#define OSTASKS 4
#define OSTIMER_PRESCALAR 7
#else
#error No MAKE_WITH_??? symbol defined. See salvocfg.h.
#endif
Can anyone tell me what I am doing wrong??
Regards, David.
[edit] - oh, and I did use the #error Here!! test to check that the compiler was using the correct salvocfg.h...
[This message has been edited by David Rye (edited August 07, 2008).]
[This message has been edited by David Rye (edited August 07, 2008).]