This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
C++ - Why always libm?
- To: egcs Mailing List <egcs at cygnus dot com>
- Subject: C++ - Why always libm?
- From: "B. James Phillippe" <bryan at terran dot org>
- Date: Mon, 8 Jun 1998 01:16:54 -0700 (PDT)
- Organization: Terran.ORG/LinuxWorld.NET
Hello,
I've been using g++ for a while now, and I notice that every C++
program I compile seems to have libm dynamically linked with it. Even a
program like:
int main( int, char*[] ) { return 1; }
Can anyone explain why this is so? I'm working on a project that
uses C++ code in an embedded environment, and I'd like to avoid adding any
libraries I don't really need.
My platform is Linux (both libc5 and glibc) using egcs-current.
thanks,
-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan