Path: chuka.playstation.co.uk!news From: "JohnT" Newsgroups: scea.yaroze.freetalk,scea.yaroze.programming.codewarrior Subject: Re: Codewarrior works, GNU doesn't Date: Sun, 15 Mar 1998 13:48:31 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 36 Message-ID: <6eglu5$dud7@chuka.playstation.co.uk> References: <6ec5lm$i0m18@scea> <6eglp3$dud6@chuka.playstation.co.uk> NNTP-Posting-Host: nettech.demon.co.uk X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Xref: chuka.playstation.co.uk scea.yaroze.freetalk:509 scea.yaroze.programming.codewarrior:300 Another thought... Are you using extern for the variables? JohnT wrote in message <6eglp3$dud6@chuka.playstation.co.uk>... >This may seem a daft idea but it will work... Combine all the source files >into one! It's daft because it defeats the purpose of multiple source files, >editing ease. > >JohnT > >------------------------------------------ >Send e-mail to johnt@nettech.demon.co.uk >Visit my web site at www.coco.net.uk/johnt >------------------------------------------ > >Kevin Davis wrote in message <6ec5lm$i0m18@scea>... >>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? >> >> > >