Assuming "datadatype" is a typo for "datatype", aren't you missing "
datatype;" after the closing brace of the structure?

Regards, Nick

-----Original Message-----
From: Chris DiPierro [mailto:[EMAIL PROTECTED]]
Sent: Friday, 15 October 1999 2:13
To: Palm Developers Forum List
Subject: Proper way to access static data /w multiple launch codes using
gcc


I need globally available static data under a variety of launch codes
(normal as well as a few custom codes). First off, I'm having problems
evendoing this with just the normal launch code (I have a structure with
Char[25]'s in them, but can't StrCopy from these w/o causing crashes of
the emulator (yes CALLBACK fix is in place)). So what should I do here?

Here's an example:

In an included .h:

typedef struct
{
  Char name[25];
  Char othername[25];
  float f;
  Byte a, b, c, d, e, f, g, h;
}

extern datadatype data[20];
.......

Reply via email to