I'm currently testing Pelles C in order to make the transition from Codewarrior 6.1 (release 9, which I was about to purchase, seems to be the last version metrowerks will produce). I must say I was pleasantly surprised to see the quality of the IDE. My toolkit and access-modules compiled without significant modifications. The first application however, I stumbled over a strange error, which I cannot resolve. Maybe you can help me out
/**************************************************************************/
/* egcs-1.1.2 */
/**************************************************************************/
/* FILE: AccRegister.h */
/**************************************************************************/
/* Developed by: ZENON productions. */
/* Programmer: Qgen v 1.0 release 42 */
/* System: AMD XP2800+ 2 x 80GB */
/* Language: ANSI C */
/* Date of beginning: 28/03/2005 */
/* Date of accomplishment: */
/* Version: 1.0.42 */
/* Revision History: None. */
/* */
/**************************************************************************/
#ifndef __ACCREGISTER
#define __ACCREGISTER
#include "PgresTools.h"
/* Include acces module headers */
#include "AccArtikels.h"
#include "Acc.h"
#include "AccArtlev.h"
#include "AccArttypes.h"
#include "AccBesteldetail.h"
#include "AccBestellingen.h"
#include "AccCalendar.h"
#include "AccFieldctrl.h"
#include "AccFormcolumns.h"
#include "AccFormdivisions.h"
#include "AccFormkaders.h"
#include "AccFormobjects.h"
#include "AccFormoptions.h"
#include "AccFormulieren.h"
#include "AccFreesql.h"
#include "AccKaders.h"
#include "AccKadtypes.h"
#include "AccKlanten.h"
#include "AccKlantenkaart.h"
#include "AccLeveranciers.h"
#include "AccMenus.h"
#include "AccMerklev.h"
#include "AccOrderdetail.h"
#include "AccOrders.h"
#include "AccParms.h"
#include "AccPerlenum.h"
#include "AccPostcodes.h"
#include "AccPrijsgroepen.h"
#include "AccPrinters.h"
#include "AccRitscolo.h"
#include "AccStaffel.h"
#include "AccTappi.h"
#include "AccUsers.h"
/* Defines */
#define ACC_NMODULES 33
/* Global structure for registering tables */
static tsRegisterCtrl rRegister[]={{DbtRegisterArtikels,ARTIKELS_VERSION},
{DbtRegisterArtlev,ARTLEV_VERSION},
{DbtRegisterArttypes,ARTTYPES_VERSION},
{DbtRegisterBesteldetail,BESTELDETAIL_VERSION},
{DbtRegisterBestellingen,BESTELLINGEN_VERSION},
{DbtRegisterCalendar,CALENDAR_VERSION},
{DbtRegisterFieldctrl,FIELDCTRL_VERSION},
{DbtRegisterFormcolumns,FORMCOLUMNS_VERSION},
{DbtRegisterFormdivisions,FORMDIVISIONS_VERSION},
{DbtRegisterFormkaders,FORMKADERS_VERSION},
{DbtRegisterFormobjects,FORMOBJECTS_VERSION},
{DbtRegisterFormoptions,FORMOPTIONS_VERSION},
{DbtRegisterFormulieren,FORMULIEREN_VERSION},
{DbtRegisterFreesql,FREESQL_VERSION},
{DbtRegisterKaders,KADERS_VERSION},
{DbtRegisterKadtypes,KADTYPES_VERSION},
{DbtRegisterKlanten,KLANTEN_VERSION},
{DbtRegisterKlantenkaart,KLANTENKAART_VERSION},
{DbtRegisterLeveranciers,LEVERANCIERS_VERSION},
{DbtRegisterMenus,MENUS_VERSION},
{DbtRegisterMerklev,MERKLEV_VERSION},
{DbtRegisterOrderdetail,ORDERDETAIL_VERSION},
{DbtRegisterOrders,ORDERS_VERSION},
{DbtRegisterParms,PARMS_VERSION},
{DbtRegisterPerlenum,PERLENUM_VERSION},
{DbtRegisterPostcodes,POSTCODES_VERSION},
{DbtRegisterPrijsgroepen,PRIJSGROEPEN_VERSION},
{DbtRegisterPrinters,PRINTERS_VERSION},
{DbtRegisterRitscolo,RITSCOLO_VERSION},
{DbtRegisterStaffel,STAFFEL_VERSION},
{DbtRegisterTappi,TAPPI_VERSION},
{DbtRegisterUsers,USERS_VERSION},
{NULL,"0"}
};
#endif
At the end of the initialising of the array I get an
Building sysadmin.obj.
O:\Mercerie\Acc\AccRegister.h(95): error #2069: Initializer must be constant.
*** Error code: 1 ***
Done.
However on the internet I found such messages to be erroneous errors spawned by the LCC compiler (in a certain version).
Hope you can set me off in the right direction
Pascal.