delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/26/17:15:26

From: toudi <pienkny AT priv6 DOT onet DOT pl>
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
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



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019