Davide,

I have just tested this code:

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

int main(void)
{
  char num1[80], num2[80];

  printf("Enter first: ");
  gets(num1);
  printf("Enter second: ");
  gets(num2);
  printf("The sum is: %ld.", atoll(num1)+atoll(num2));

  return 0;
}

On FreeBSD-4.11 (undefined reference to `atoll') and on FreeBSD-7.2 (OK).

It looks like FreeBSD-4.11 does not have this function indeed.


-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Davide Libenzi
Sent: 26 février 2010 10:51
To: XMail Users Mailing List
Subject: Re: [xmail] XMail 1.27 released

On Fri, 26 Feb 2010, fred wrote:

> Hello Davide,
>
> Thanks for this new release.
>
> I have issues building this on FreeBSD-4.11 32bits, here is what happens:
>
> g++   -D_FILE_OFFSET_BITS=64 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__
> -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAS_SYSMACHINE -D_GNU_SOURCE
> -D_LARGEFILE64_SOURCE -D_POSIX_PTHREAD_SEMANTICS -O2 -o bin/POP3Utils.o -c
> POP3Utils.cpp
> POP3Utils.cpp: In function `int UPopCheckMailboxSize(UserInfo *, SYS_OFF_T
*
> = 0)':
> POP3Utils.cpp:156: implicit declaration of function `int atoll(...)'
> gmake: *** [bin/POP3Utils.o] Error 1
>
>
> This refers to this line in POP3Utils.cpp:
>
> SYS_OFF_T llMaxMBSize = Sys_atoi64(pszMaxMBSize) * 1024;

No atoll() on FreeBSD?!?
In every one of them, or only in older ones?


- Davide


_______________________________________________
xmail mailing list
[email protected]
http://xmailserver.org/mailman/listinfo/xmail


_______________________________________________
xmail mailing list
[email protected]
http://xmailserver.org/mailman/listinfo/xmail

Reply via email to