I cut and pasted the starter project code for checking ROM version and I get
an error when I compile. When I comment out the code I get a clean compile.
Here's the error: "In function 'RomVersionCompatible' line:137 'err'
undeclared"
What's 'err'?? I'm confused.
( line 137 in my case is the one that starts with AppLaunchWithCommand...)
Here is what I pasted:
static Err RomVersionCompatible(DWord requiredVersion, Word launchFlags)
{
DWord romVersion;
// See if we're on in minimum required version of the ROM or later.
FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion);
if (romVersion < requiredVersion)
{
if ((launchFlags & (sysAppLaunchFlagNewGlobals |
sysAppLaunchFlagUIApp)) ==
(sysAppLaunchFlagNewGlobals |
sysAppLaunchFlagUIApp))
{
FrmAlert (RomIncompatibleAlert);
// Pilot 1.0 will continuously relaunch this app
unless we switch to
// another safe one.
if (romVersion <
sysMakeROMVersion(2,0,0,sysROMStageRelease,0))
// the next line is where the compiler says there's an error...
AppLaunchWithCommand(sysFileCDefaultApp,
sysAppLaunchCmdNormalLaunch, NULL);
}
return (sysErrRomIncompatible);
}
return (0);
}