|
From: | nospam |
Subject: | Re: how to exclue libm when compile C++ program with g++ |
Date: | Tue, 03 Aug 2004 14:40:34 +0800 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 |
because for some ARM platform, there is no floating point co-prosessor and the floationg are emulated by software and is extremely slow. there are quite a lot of project are like that: for example - libmad is a integer only decoder for mp3 - libjpeg is a integer only decoder for jpeg - libmpeg4 - also the invention of H.264 relies only on integer! Paul Pluzhnikov wrote:
"nospam" <nospam@nospam.com> writes:I am changing a C++ project so that it is independent of math libraryWhatever for?Why is libm?The reason g++ adds libm to the link is that libstdc++ depends on it. Even though *your* code doesn't need it, your code is not all that gets linked into your executable. Cheers,
[Prev in Thread] | Current Thread | [Next in Thread] |