Date: Mon, 17 Apr 2000 10:54:50 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Dennis Yelle cc: djgpp AT delorie DOT com Subject: Re: Where is atoll()? In-Reply-To: <38FA6A8B.E56DDD3C@jps.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 16 Apr 2000, Dennis Yelle wrote: > I see that C:\DJGPP\INCLUDE\STDLIB.H > contains the line > long long atoll(const char *_s); [snip] > gxx -O2 -Wall lltest.cpp -o lltest.exe > I get this: > > c:/djgpp/tmp\ccWMYo4F.o(.text+0x27):lltest.cpp: undefined reference to `atoll' > collect2: ld returned 1 exit status > > So, is atoll() missing from your library? There's no `atoll' in the library. stdlib.h is in error, but you shouldn't use the headers as the evidence of presence or absence of library functions, anyway. That's what the library docs is for. I suggest to use `strtoll' or `strtoull' instead. (In fact, I suggest to use the `strto*' family instead of the `ato*' family for any type of conversion.)