They probably aren't broken, looks like I need to link in some library. I
get "undefined reference to" when I try to compile/link. Shouldn't this
be mentioned in the man page?
Alan
/*
test of llround() & round(), fails under 4.7 and 5.0
*/
#include
#include
#include
#include
int m
On 4 June 2012 05:55, Alan Corey wrote:
> They probably aren't broken, looks like I need to link in some library. B I
> get "undefined reference to" when I try to compile/link. B Shouldn't this
be
> mentioned in the man page?
>
> B Alan
>
> /*
> B test of llround() & round(), fails under 4.7 and
Alan Corey writes:
>They probably aren't broken, looks like I need to link in some library. I
>get "undefined reference to" when I try to compile/link. Shouldn't this
>be mentioned in the man page?
FreeBSD has a "Library" section in its man page:
LIBRARY
Math Library (libm, -lm)
I recal
On Mon, Jun 04, 2012 at 12:37:07AM -0600, Anthony J. Bentley wrote:
> Alan Corey writes:
> >They probably aren't broken, looks like I need to link in some library. I
> >get "undefined reference to" when I try to compile/link. Shouldn't this
> >be mentioned in the man page?
>
> FreeBSD has a "L
man intro (3) comes close in OpenBSD (I did man -k libraries to find it)
It just seems like if a function requires a special library that
should be mentioned in the function's man page as well as the header
file since it needs both to work. I guess it depends on how surprised
you are that the fun
This seems to come up most often regarding the math functions.
Which Unix system doesn't require -lm for those math functions?
> man intro (3) comes close in OpenBSD (I did man -k libraries to find it)
>
> It just seems like if a function requires a special library that
> should be mentioned in
On Mon, Jun 04, 2012 at 20:40, Theo de Raadt wrote:
> This seems to come up most often regarding the math functions.
>
> Which Unix system doesn't require -lm for those math functions?
I think these people have no experience writing any C and OpenBSD is
the first place they've tried it. Trying t
On 06/04/2012 07:31 PM, Alan Corey wrote:
man intro (3) comes close in OpenBSD (I did man -k libraries to find it)
It just seems like if a function requires a special library that
should be mentioned in the function's man page as well as the header
file since it needs both to work. I guess it d
russell writes:
>$man math
>DESCRIPTION
> These functions constitute the C math library, libm. The link editor
> searches this library under the ``-lm'' option. Declarations for these
> functions may be obtained from the include file .
That manpage was removed from base 11 months ago.
9 matches
Mail list logo