Path: chuka.playstation.co.uk!news From: "Mark Wilson" Newsgroups: scea.yaroze.freetalk,scea.yaroze.programming.codewarrior Subject: Re: Codewarrior works, GNU doesn't Date: Tue, 24 Mar 1998 18:04:03 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 21 Message-ID: <6f8scn$f1o23@chuka.playstation.co.uk> References: <6ec5lm$i0m18@scea> NNTP-Posting-Host: an040.du.pipex.com X-Newsreader: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Xref: chuka.playstation.co.uk scea.yaroze.freetalk:542 scea.yaroze.programming.codewarrior:308 >I recently finished the first cut of the game I've been working on. I did >the programming using codewarrior and wanted to generate a version using >GNU. While the program compiles ok, when I run it I'm having all sorts of >problems mostly with my program freezing up for no apparent reason. I >believe the problem to be with my use of global variables that are shared >between the different C files. In order to cut down on function parameters >I made a bunch of my variables global. When I change these to be passed >parameters the program seems to work correctly. The problem is I have a lot >of global variables and I don't want to change all of them since this works >in codewarrior. Anyone else run into a similar problem or have an idea as >to what's wrong? I had the same problem, so I turned all the warnings on in GNU and it came up with a whole stack of things that Codewarrior didn't seem concerned about. Once I sorted those out it worked fine. Mark