I write a new "sqrt(double)" in libtest.cpp, and compile it to a dynamic (or static) library libtest.so. The function interface is same as in math.h.
Then I want to link main.o with libtest.so instead of libm.a. I am wondering how to do it with clang++ or g++.
It seems that -lstdc++ calls -lm by default.
Thanks a lot !