From: toudi Newsgroups: comp.os.msdos.djgpp Subject: Re: null undeclared Date: Thu, 26 Oct 2000 23:07:37 +0100 Organization: news.onet.pl Lines: 20 Sender: [pienkny.friko6.onet.pl]@pa55.warszawa.ppp.tpnet.pl Message-ID: <39F8AB28.4D51911@priv6.onet.pl> References: <39F85D4B DOT EA118900 AT upcnet DOT es> NNTP-Posting-Host: pa55.warszawa.ppp.tpnet.pl Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Trace: news.onet.pl 972594064 20166 212.160.52.55 (26 Oct 2000 21:01:04 GMT) X-Complaints-To: abuse AT onet DOT pl NNTP-Posting-Date: 26 Oct 2000 21:01:04 GMT X-Accept-Language: pl X-Mailer: Mozilla 4.5 [pl] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > 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