Sender: nate AT cartsys DOT com Message-ID: <35FAD90A.4377FB6F@cartsys.com> Date: Sat, 12 Sep 1998 13:26:50 -0700 From: Nate Eldredge MIME-Version: 1.0 To: faegre AT teleport DOT com CC: djgpp AT delorie DOT com Subject: Re: Problem compiling References: <3237A1AE DOT 7C36 AT teleport DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Aron Faegre wrote: > > I don't understand why I am getting a lot of errors using gcc where I > didn't get any when compiling this program under borland turbo c++. > Every time I use a variable outside of function main() it gives the > error: 'variable' undefined. You will see from the list of errors every > time I use the struct square it also gives me more errors. I'm trying > to figure out what's wrong. Post the source, please. It's nearly impossible to diagnose the problem without it. One thing: Check for occurences of `far', `near' or `huge' in your source. GCC doesn't support them. Read FAQ chapter 17 for all the details, and solutions. -- Nate Eldredge nate AT cartsys DOT com