X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Sun, 08 Feb 2004 20:21:32 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <2914-Sun08Feb2004202132+0200-eliz@elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <40261e4e@news.comindico.com.au> (nospam@aardvark.net.au) Subject: Re: rint(), long double, etc. References: <40222b08 AT news DOT comindico DOT com DOT au> <3405-Thu05Feb2004210810+0200-eliz AT elta DOT co DOT il> <40261e4e AT news DOT comindico DOT com DOT au> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "au_193" > 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 ;-)