www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/22/14:37:25

Message-ID: <35DF103A.600FF384@earthlink.com>
Date: Sat, 22 Aug 1998 14:38:50 -0400
From: puva AT earthlink DOT net
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Local Variables

I don't know if i'm sending this question to the right place or not,
hehe, but I can't seem
to use local variables in my source files. Like:

void main()
{
        int a;
}

would give an error like, "parse error before int" or "parse error
before a". It works fine if the variables are outside of main(), but not
anything local. Is there something wrong with how the compiler is setup?
or is there a header missing or something?

Thanx for any help you can provide,
Galen

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019