help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to exclue libm when compile C++ program with g++


From: Paul Pluzhnikov
Subject: Re: how to exclue libm when compile C++ program with g++
Date: 02 Aug 2004 21:34:12 -0700
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)

"nospam" <nospam@nospam.com> writes:

>     I am changing a C++ project so that it is independent of math library

Whatever 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,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]