On Wed, 24 Jun 2015, Andrew Senkevich wrote:
> Can anybody tell something about this difference in drivers?
libstdc++ uses libm - that's probably why g++ links it in by default.
Modern good practice would say that it should only be linked directly into
a program (should only end up listed in DT
On 06/24/2015 03:12 PM, Andrew Senkevich wrote:
> Can anybody tell something about this difference in drivers?
It's a UNIX tradition to require -lm for the floating-point
library in C programs. It doesn't make much sense now, but it's
hard to change it.
Andrew.
Hi,
Glibc 2.22 will have libm.so implemented as linker script helping to
link as needed against vector math library libmvec.so without addition
of -lmvec (for not static builds). Another words -lm is enough to link
against libmvec.so.
But g++ driver inserts -lm for linker command, gcc griver not.