This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ - Why always libm?
- To: "B. James Phillippe" <bryan at terran dot org>
- Subject: Re: C++ - Why always libm?
- From: Andreas Schwab <schwab at issan dot informatik dot uni-dortmund dot de>
- Date: 10 Jun 1998 10:53:22 +0200
- Cc: egcs Mailing List <egcs at cygnus dot com>
- References: <Pine.LNX.3.96.980608133614.1066A-100000@earth.terran.org>
"B. James Phillippe" <bryan@terran.org> writes:
|> Let me ask this again: Can anyone explain why libm is linked with even the
|> simplest C++ program?
libstdc++ references libm functions, thus it must be linked against it.
Since every C++ program links against libstdc++ you'll get libm as well.
--
Andreas Schwab "And now for something
schwab@issan.informatik.uni-dortmund.de completely different"
schwab@gnu.org