Path: chuka.playstation.co.uk!news From: "George Bain" Newsgroups: scee.yaroze.freetalk.english Subject: Re: CodeWarrior Date: Fri, 21 Apr 2000 15:00:28 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 59 Message-ID: <8dpmrj$3js1@chuka.playstation.co.uk> References: <8dfgp0$6c22@chuka.playstation.co.uk> <8dp9oi$8ce4@chuka.playstation.co.uk> <8dpgrr$8ce6@chuka.playstation.co.uk> NNTP-Posting-Host: scee-gw.scee.sony.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Gotcha.... Codewarrior.....hmmm. "ROBERT C SHAND" <298rcs@tay.ac.uk> wrote in message news:8dpgrr$8ce6@chuka.playstation.co.uk... > No George what I mean is this > > main.c > > int fred; // The global var > > main() > { > fred = 255; // Give it a val > foo(); > } > > foo.c > > #include > extern int fred; // The global var > > foo() > { > printf("Fred is %d\n",fred); > } > > Anyway its fixed itself now. God knows what it was up to. > > Bob > > > > George Bain wrote in message <8dp9oi$8ce4@chuka.playstation.co.uk>... > >That should be right. If I recall, all compilers set globals variables to > >0. > > > >George > > > >"ROBERT C SHAND" wrote in message > >news:8dfgp0$6c22@chuka.playstation.co.uk... > >> I HATE codewarrior........GRRRRR > >> > >> now its making an externed global variable NULL. > >> > >> Doh! > >> > >> Bob > >> bob@shand.org.uk > >> > >> > >> > > > > > >