This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++ - Why always libm?


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]