Mail Archives: djgpp/2004/02/08/13:21:08
> From: "au_193" <nospam AT aardvark DOT net DOT au>
> Newsgroups: comp.os.msdos.djgpp
> Date: Sun, 08 Feb 2004 11:32:31 GMT
> >
> > Link with -lm, these functions are in libm.a, not in libc.a, and so
> > are not linked in by default.
>
> Thanks for this hint. Unfortunately the alternative math
> library slows down some other functions considerably
> which have duplicates in libc.
This is not a problem if you recall that GNU `ld' is a one-pass
linker. Try this command:
gcc ... -lc -lm
(replace "..." with the rest of the arguments you need to give GCC to
link your program). This will cause GCC to pick whatever functions
it finds in libc.a first, and only those it doesn't from libm.a.
> After reading somewhere that long double math functions are
> mandatory in C99, I was hoping that they'll be available sooner or
> later as a standard feature in DGJPP.
Work is under way to add them; volunteers are welcome to come on board
and help make that happen.
> One of you guys might want to look into synchronizing
> the two versions, if that's not too much trouble. : )
As DJ points out, one of us already did ;-)
- Raw text -