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]

C++ - Why always libm?


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



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