configure error after GCC update

Ayush Tomar <[email protected]>
Newsgroups gmane.comp.search.xapian.devel
Message-ID <CAPx_PWmAX+8S-gucCofTHXU0ENdEbEVYGmubOs6xm99pi_6TNQ@mail.gmail.com>
Hi,

I updated GCC from 4.7 to 4.9. Since then configure is failing with this
error:

checking if -lm is required for maths functions... configure: error: Failed
to link a C++ program using <cmath>
configure failed

Could someone tell what might be going wrong here and how to fix it?

Regards,
Ayush
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.