Path: chuka.playstation.co.uk!news From: "ROBERT C SHAND" <298rcs@tay.ac.uk> Newsgroups: scee.yaroze.freetalk.english Subject: Re: CodeWarrior Date: Fri, 21 Apr 2000 13:18:15 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 51 Message-ID: <8dpgrr$8ce6@chuka.playstation.co.uk> References: <8dfgp0$6c22@chuka.playstation.co.uk> <8dp9oi$8ce4@chuka.playstation.co.uk> NNTP-Posting-Host: is2932.tay.ac.uk X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 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 >> >> >> > >