I'm probably missing something simple but in the code sample below, run in the Simulator, the macros don't seem to be being recognised (although I believe they are permanently registered); in the sample below I am trying to store a stream of values in a disk file. The macros, __openFile() and __writeFile() aren't being recognised. Also, a clue: the "__var" declaration is not recognised and flagged as "undefined".
Ideas ???
int main( void )
{
int test_A,test_B;
// Stop watchdog timer to prevent time out reset
WDTCTL = WDTPW + WDTHOLD;
test_A = 0;
__var fhMyHandle;
fhMyHandle = __openFile("C:outfile.txt","w");
for (int i=0;i<10;i++)
{
test_A +=1;
test_B = test_A;
__writeFile(fhMyHandle, test_A);
}