How do I specify in my makefile that I want to link with the libtiff library. Just specifying -ltiff in LDFLAGS is not working.
How do I specify in my makefile that I want to link with the
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Either you can use the -L flag (see either manual for the compiler – I am assuming that you are using gcc or g++
or
Set the environment variable
LD_LIBRARY_PATHto include the path for the libraryBut you should also consider static or dynamic linking. The documentation for both compilers are very good to explain how to do either.