delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/16/21:12:58

Message-ID: <38FA6A8B.E56DDD3C@jps.net>
From: Dennis Yelle <dennis51 AT jps DOT net>
X-Mailer: Mozilla 4.72 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Where is atoll()?
Lines: 32
Date: Sun, 16 Apr 2000 18:36:11 -0700
NNTP-Posting-Host: 216.119.44.86
X-Complaints-To: abuse AT onemain DOT com
X-Trace: nntp3.onemain.com 955935249 216.119.44.86 (Sun, 16 Apr 2000 21:34:09 EDT)
NNTP-Posting-Date: Sun, 16 Apr 2000 21:34:09 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I see that C:\DJGPP\INCLUDE\STDLIB.H
contains the line
long long   atoll(const char *_s);
but when I try to compile this program:

-------------- cut here -------------------

#include <stdio.h>
#include <stdlib.h>

int main()
{
  long a      = atol( "555");
  long long x = atoll( "777");
  return a && x;
}

----------------- cut here ---------------

with this command line: 
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?
Or is mine installed wrong?

Dennis Yelle

P. S. info does not seem to have any information about atoll().

- Raw text -


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