From: "Edmund Horner" Newsgroups: comp.os.msdos.djgpp References: <39F85D4B DOT EA118900 AT upcnet DOT es> <39F8AB28 DOT 4D51911 AT priv6 DOT onet DOT pl> Subject: Re: null undeclared Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Organization: Paradise Net Message-ID: <972619957.330602@shelley.paradise.net.nz> Cache-Post-Path: shelley.paradise.net.nz!unknown AT 203-96-146-90 DOT tnt2 DOT paradise DOT net DOT nz X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Date: Fri, 27 Oct 2000 17:13:46 +1300 NNTP-Posting-Host: 203.96.152.26 X-Complaints-To: newsadmin AT xtra DOT co DOT nz X-Trace: news.xtra.co.nz 972619958 203.96.152.26 (Fri, 27 Oct 2000 17:12:38 NZDT) NNTP-Posting-Date: Fri, 27 Oct 2000 17:12:38 NZDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Yes, but it's not recommended. "toudi" wrote in message news:39F8AB28 DOT 4D51911 AT priv6 DOT onet DOT pl... > > > > When i compile a program with have a reference to the pointer NULL, the > > compiler says me In function xxxxx 'NULL' undeclared (first use this > > fuction) > > > > What's the problem??? > > Hey, you can define your own NULL, just add this lines at a beginning of > your project file: > #ifndef NULL > #define NULL 0 > #endif > > > > toudi > > >