<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] warning cleared



On 2005-09-21 21:56:08 -0500, David Champion wrote:
> unix$ uname -a
> SunOS square 4.1.4 2 sun4m
> unix$ which cc
> /usr/bin/cc
> unix$ cat strtoul-test.c 
> main()
> {
>         return strtoul("12", 0L, 0);
> }
> unix$ cc strtoul-test.c 
> ld: Undefined symbol 
>    _strtoul 

You need

  #include <stdlib.h>

Perhaps this can change something. Moreover, perhaps linking
with some library, such as -lansi (as suggested on the web),
is needed.

Anyway, even if it is really missing, this could be solve by
a configure test, like this can be done for the non-standard
strcasecmp and strncasecmp functions.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA