How to hide the linker warning

I am working with MySql lib when I compile, although compilation is ok, I have this warning:

g ++: -lmysqlclient: linker input file not used because link failed

I am using automake and I had to add -lmysqlclient to configure.ac, so my guess is that the linker is giving me this warning in every file that no link is required.

My question is, how can I hide this particular warning?

Thank!

+3


source to share


1 answer


Resolved! To add an LD parameter with automake I need to add

libsomething_la_LIBADD = -lmysqlclient



in Makefile.am.

Now, as @nos said, I am not adding -lmysqlclient to compilation. Thanks everyone!

0


source







All Articles